From: Bernd Petrovitsch Date: Thu, 29 Nov 2007 23:40:08 +0000 (+0000) Subject: * fixed a warning on 64bit X-Git-Tag: OLSRD_0_5_5_RC1~64 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=534965dd736d53904398898bef945b2cb6b67cce * fixed a warning on 64bit --- diff --git a/src/process_package.c b/src/process_package.c index 0e8654cc..f8032d09 100644 --- a/src/process_package.c +++ b/src/process_package.c @@ -36,7 +36,7 @@ * to the project. For more information see the website or contact * the copyright holders. * - * $Id: process_package.c,v 1.49 2007/11/29 23:03:07 bernd67 Exp $ + * $Id: process_package.c,v 1.50 2007/11/29 23:40:08 bernd67 Exp $ */ #include "process_package.h" @@ -707,7 +707,7 @@ olsr_process_received_hna(union olsr_message *m, pkt_get_u16(&curr, &olsr_msgsize); 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))); + 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; } if ((hnasize % (2 * olsr_cnf->ipsize)) != 0) {