[Olsr-cvs] olsrd-current/src process_package.c,1.49,1.50

Bernd Petrovitsch (spam-protected)
Fri Nov 30 00:40:10 CET 2007


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

Modified Files:
	process_package.c 
Log Message:
* fixed a warning on 64bit

Index: process_package.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/process_package.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** process_package.c	29 Nov 2007 23:03:07 -0000	1.49
--- process_package.c	29 Nov 2007 23:40:08 -0000	1.50
***************
*** 708,712 ****
    hnasize = olsr_msgsize - (olsr_cnf->ip_version == AF_INET ? offsetof(struct olsrmsg, message) : offsetof(struct olsrmsg6, message));
    if (hnasize < 0) {
!     OLSR_PRINTF(0, "message size %d too small (at least %d)!\n", olsr_msgsize, (olsr_cnf->ip_version == AF_INET ? offsetof(struct olsrmsg, message) : offsetof(struct olsrmsg6, message)));
      return;
    }
--- 708,712 ----
    hnasize = olsr_msgsize - (olsr_cnf->ip_version == AF_INET ? offsetof(struct olsrmsg, message) : offsetof(struct olsrmsg6, message));
    if (hnasize < 0) {
!     OLSR_PRINTF(0, "message size %d too small (at least %lu)!\n", olsr_msgsize, (unsigned long)(olsr_cnf->ip_version == AF_INET ? offsetof(struct olsrmsg, message) : offsetof(struct olsrmsg6, message)));
      return;
    }





More information about the Olsr-cvs mailing list