[Olsr-cvs] olsrd-current/src/cfgparser oscan.lex,1.26,1.27

Bernd Petrovitsch (spam-protected)
Wed Oct 10 22:44:36 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src/cfgparser
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20713/src/cfgparser

Modified Files:
	oscan.lex 
Log Message:
* kill a warning on 64bit

Index: oscan.lex
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/oscan.lex,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** oscan.lex	4 Oct 2007 23:06:10 -0000	1.26
--- oscan.lex	10 Oct 2007 20:44:34 -0000	1.27
***************
*** 92,96 ****
          rv->string = malloc(n+1);
          if (rv->string == NULL) {
!             fprintf(stderr, "Cannot allocate %d bytes for string token data.\n", n+1);
              free(rv);
              return NULL;
--- 92,96 ----
          rv->string = malloc(n+1);
          if (rv->string == NULL) {
!           fprintf(stderr, "Cannot allocate %lu bytes for string token data.\n", (unsigned long)(n+1)); /* size_t on 64bit */
              free(rv);
              return NULL;





More information about the Olsr-cvs mailing list