From: Jeremy Allison Date: Mon, 20 Oct 2008 23:34:56 +0000 (-0700) Subject: Fix warnings. X-Git-Tag: samba-4.0.0alpha6~778^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aba3516769b944e7960d27f10799bb8a8898d2d;p=thirdparty%2Fsamba.git Fix warnings. Jeremy. --- diff --git a/source3/lib/netapi/tests/netfile.c b/source3/lib/netapi/tests/netfile.c index 36ee8288eed..bee3c2ed5eb 100644 --- a/source3/lib/netapi/tests/netfile.c +++ b/source3/lib/netapi/tests/netfile.c @@ -37,8 +37,8 @@ static NET_API_STATUS test_netfileenum(const char *hostname, uint8_t *buffer = NULL; int i; - struct FILE_INFO_2 *i2; - struct FILE_INFO_3 *i3; + struct FILE_INFO_2 *i2 = NULL; + struct FILE_INFO_3 *i3 = NULL; printf("testing NetFileEnum level %d\n", level); @@ -98,8 +98,6 @@ NET_API_STATUS netapitest_file(struct libnetapi_ctx *ctx, const char *hostname) { NET_API_STATUS status = 0; - uint8_t *buffer = NULL; - uint32_t levels[] = { 2, 3 }; uint32_t enum_levels[] = { 2, 3 }; int i; @@ -118,14 +116,18 @@ NET_API_STATUS netapitest_file(struct libnetapi_ctx *ctx, /* basic queries */ #if 0 - for (i=0; i