From 901e004d2a9162d9cb37e989bf118aeaf3562cf8 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 26 Nov 2007 05:03:55 +0000 Subject: [PATCH] silence compiler complaints --- release/picobsd/tinyware/msg/msg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release/picobsd/tinyware/msg/msg.c b/release/picobsd/tinyware/msg/msg.c index c9f87efbbb6a..4d0c3c1f935f 100644 --- a/release/picobsd/tinyware/msg/msg.c +++ b/release/picobsd/tinyware/msg/msg.c @@ -32,6 +32,7 @@ #include +#include #include #include @@ -45,13 +46,13 @@ main(int argc, char *argv[]) /* We use sysctlbyname, because the oid is unknown (OID_AUTO) */ /* get the buffer size */ - i=sysctlbyname(mib,NULL,&len,NULL,NULL); + i=sysctlbyname(mib,NULL,&len,NULL,0); if(i) { perror("buffer sizing"); exit(-1); } buf=(char *)malloc(len*sizeof(char)); - i=sysctlbyname(mib,buf,&len,NULL,NULL); + i=sysctlbyname(mib,buf,&len,NULL,0); if(i) { perror("retrieving data"); exit(-1);