diff options
author | Andreas Schneider <asn@samba.org> | 2023-02-03 20:32:54 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2023-02-06 22:51:32 +0000 |
commit | a94adedd0ef335b1ee037cc2e666a5b39d57d3bc (patch) | |
tree | 1d06155d8b26e27fee77140ac19f88e5f316c87e /source3/lib/netapi | |
parent | 5447d7fb75fc00b17cde4dd0ecccd89e8b6f8545 (diff) | |
download | samba-a94adedd0ef335b1ee037cc2e666a5b39d57d3bc.tar.gz |
s3:netapi: Remove unused variables
source3/lib/netapi/tests/netfile.c:40:22: error: variable 'i2' set but not used
[-Werror,-Wunused-but-set-variable]
struct FILE_INFO_2 *i2 = NULL;
^
source3/lib/netapi/tests/netfile.c:41:22: error: variable 'i3' set but not used
[-Werror,-Wunused-but-set-variable]
struct FILE_INFO_3 *i3 = NULL;
^
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/tests/netfile.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/netapi/tests/netfile.c b/source3/lib/netapi/tests/netfile.c index bee3c2ed5eb..87aff029320 100644 --- a/source3/lib/netapi/tests/netfile.c +++ b/source3/lib/netapi/tests/netfile.c @@ -37,9 +37,6 @@ static NET_API_STATUS test_netfileenum(const char *hostname, uint8_t *buffer = NULL; int i; - struct FILE_INFO_2 *i2 = NULL; - struct FILE_INFO_3 *i3 = NULL; - printf("testing NetFileEnum level %d\n", level); do { @@ -55,10 +52,8 @@ static NET_API_STATUS test_netfileenum(const char *hostname, if (status == 0 || status == ERROR_MORE_DATA) { switch (level) { case 2: - i2 = (struct FILE_INFO_2 *)buffer; break; case 3: - i3 = (struct FILE_INFO_3 *)buffer; break; default: return -1; @@ -76,10 +71,8 @@ static NET_API_STATUS test_netfileenum(const char *hostname, switch (level) { case 2: - i2++; break; case 3: - i3++; break; } } |