Browse code

- warnings fixes on 64 bit systems

Andrei Pelinescu-Onciul authored on 09/11/2004 17:50:26
Showing 2 changed files
... ...
@@ -479,7 +479,7 @@ ifeq			($(CC_SHORTVER), 3.0)
479 479
 					CPU ?= athlon64
480 480
 					CFLAGS+=-minline-all-stringops \
481 481
 							-falign-loops \
482
-							-mcpu=$(CPU) \
482
+							#-mcpu=$(CPU) \ # not working on all x86_64 gccs
483 483
 							#-mcpu=athlon
484 484
 else
485 485
 ifeq			($(CC_SHORTVER), 2.9x) #older gcc version (2.9[1-5])
... ...
@@ -438,7 +438,8 @@ static int script_init( struct sip_msg *foo, void *bar)
438 438
 
439 439
 static int mod_init(void)
440 440
 {
441
-	DBG( "TM - (size of cell=%d) initializing...\n",sizeof(struct cell));
441
+	DBG( "TM - (size of cell=%ld) initializing...\n", 
442
+			(long)sizeof(struct cell));
442 443
 	/* checking if we have sufficient bitmap capacity for given
443 444
 	   maximum number of  branches */
444 445
 	if (MAX_BRANCHES+1>31) {