]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Only declare variables if we're gonna use them
authorAndreas Schneider <asn@samba.org>
Mon, 20 May 2019 14:07:08 +0000 (16:07 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 24 May 2019 06:07:08 +0000 (06:07 +0000)
Found by covscan.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
source3/utils/smbcontrol.c

index 1a2a0ec3ed572e7e476ef1568ea9aa61180c51c5..7a761a6ff5946c7b07406e1dd1368d24a5a222e0 100644 (file)
@@ -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");