mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
tt (tooltalk): Kill some warnings
Includes some potentially bad pointer/int conversions
This commit is contained in:
parent
5ad7a83985
commit
19c7c80aa3
4 changed files with 5 additions and 4 deletions
|
@ -371,7 +371,7 @@ typedef struct maphdr {
|
||||||
/*
|
/*
|
||||||
* Macro to get pointer to structure if pointer to some element is known
|
* Macro to get pointer to structure if pointer to some element is known
|
||||||
*/
|
*/
|
||||||
#define GETBASE(p,s,e) ((struct s *) ((char *)(p) - (int)&((struct s *)0)->e))
|
#define GETBASE(p,s,e) ((struct s *) ((char *)(p) - (char *)&((struct s *)0)->e))
|
||||||
|
|
||||||
/* In memory sorting object */
|
/* In memory sorting object */
|
||||||
typedef struct issort {
|
typedef struct issort {
|
||||||
|
|
|
@ -194,7 +194,7 @@ ldchar2(src, len, dst)
|
||||||
|
|
||||||
/* Load the entire string. */
|
/* Load the entire string. */
|
||||||
memcpy((void *) dst, (const void *) src, len);
|
memcpy((void *) dst, (const void *) src, len);
|
||||||
*(dst + len) = NULL;
|
*(dst + len) = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -51,7 +51,7 @@ extern struct dlink *_isdln_next(), *_isdln_first();
|
||||||
#define ISHASHHDRS 256 /* Must be a power of two */
|
#define ISHASHHDRS 256 /* Must be a power of two */
|
||||||
#define ISHASHMASK (ISHASHHDRS-1)
|
#define ISHASHMASK (ISHASHHDRS-1)
|
||||||
|
|
||||||
#define __hashblkno(fcb,blkno) (((int)(fcb)+(blkno)) & ISHASHMASK)
|
#define __hashblkno(fcb,blkno) (((size_t)(fcb)+(blkno)) & ISHASHMASK)
|
||||||
|
|
||||||
|
|
||||||
#define base ((char *)0)
|
#define base ((char *)0)
|
||||||
|
|
|
@ -42,6 +42,7 @@ static char sccsid[] = "@(#)isstart.c 1.9 89/07/17 Copyr 1988 Sun Micro";
|
||||||
|
|
||||||
#include "isam_impl.h"
|
#include "isam_impl.h"
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static int _amstart();
|
static int _amstart();
|
||||||
|
|
||||||
|
@ -591,7 +592,7 @@ _amstart(isfhandle, record, reclen, readmode,
|
||||||
|
|
||||||
/* Clean-up work. */
|
/* Clean-up work. */
|
||||||
if (newcrp != NULL)
|
if (newcrp != NULL)
|
||||||
free((char *)newcrp);
|
free(newcrp);
|
||||||
|
|
||||||
_isdisk_commit(); /* This will only check
|
_isdisk_commit(); /* This will only check
|
||||||
* that we unfixed all fixed
|
* that we unfixed all fixed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue