diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-20 16:07:08 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-24 06:07:08 +0000 |
commit | de926429413f2440d185681586427a9e77c81a7f (patch) | |
tree | 0bdf917fba98210fb74ac2ddeb0c354394eb9d4d /source3/utils/smbcontrol.c | |
parent | 5cce3493fb6696c01ccacf165cfcd45c588fc279 (diff) | |
download | samba-de926429413f2440d185681586427a9e77c81a7f.tar.gz |
s3:utils: Only declare variables if we're gonna use them
Found by covscan.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r-- | source3/utils/smbcontrol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 1a2a0ec3ed5..7a761a6ff59 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -415,9 +415,11 @@ static bool do_sleep(struct tevent_context *ev_ctx, const struct server_id pid, const int argc, const char **argv) { +#if defined(DEVELOPER) && defined(ENABLE_SELFTEST) unsigned int seconds; long input; const long MAX_SLEEP = 60 * 60; /* One hour maximum sleep */ +#endif if (argc != 2) { fprintf(stderr, "Usage: smbcontrol <dest> sleep seconds\n"); |