tt (tooltalk): Kill some warnings

Includes some potentially bad pointer/int conversions
This commit is contained in:
Frederic Koehler
2012-08-11 18:38:59 -04:00
committed by Jon Trulson
parent 5ad7a83985
commit 19c7c80aa3
4 changed files with 5 additions and 4 deletions

View File

@@ -371,7 +371,7 @@ typedef struct maphdr {
/*
* 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 */
typedef struct issort {