summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-08-30 11:41:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:26 -0500
commit2f626e7b5ad2d921490723e32863bd423e8272cd (patch)
treea1b9f1d14236b683de9086fcd52a7fecd6120628 /source3
parenta206a5efdd4b75e78153a0b23a3d6e5a144ed42a (diff)
downloadsamba-2f626e7b5ad2d921490723e32863bd423e8272cd.tar.gz
samba-2f626e7b5ad2d921490723e32863bd423e8272cd.tar.bz2
samba-2f626e7b5ad2d921490723e32863bd423e8272cd.zip
r9790: remove 'set but not used' variables (reported by Jason Mader)
(This used to be commit 9c78f3b0d6c36854e082a89cb1ee5b80fcc9fe35)
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd.c3
-rw-r--r--source3/web/swat.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 97e22943b1..bc58dd3a28 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -650,7 +650,6 @@ static BOOL open_sockets(BOOL isdaemon, int port)
pstring logfile;
static BOOL opt_interactive;
poptContext pc;
- int opt;
struct poptOption long_options[] = {
POPT_AUTOHELP
{"daemon", 'D', POPT_ARG_VAL, &is_daemon, True, "Become a daemon(default)" },
@@ -666,7 +665,7 @@ static BOOL open_sockets(BOOL isdaemon, int port)
global_nmb_port = NMB_PORT;
pc = poptGetContext("nmbd", argc, argv, long_options, 0);
- while ((opt = poptGetNextOpt(pc)) != -1) ;
+ while (poptGetNextOpt(pc) != -1) {};
poptFreeContext(pc);
global_in_nmbd = True;
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 43dacb2945..15612484a3 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -1331,13 +1331,12 @@ static void printers_page(void)
**/
int main(int argc, char *argv[])
{
- int opt;
const char *page;
poptContext pc;
struct poptOption long_options[] = {
POPT_AUTOHELP
{ "disable-authentication", 'a', POPT_ARG_VAL, &demo_mode, True, "Disable authentication (demo mode)" },
- { "password-menu-only", 'P', POPT_ARG_VAL, &passwd_only, True, "Show only change password menu" },
+ { "password-menu-only", 'P', POPT_ARG_VAL, &passwd_only, True, "Show only change password menu" },
POPT_COMMON_SAMBA
POPT_TABLEEND
};
@@ -1368,7 +1367,7 @@ static void printers_page(void)
/* Parse command line options */
- while((opt = poptGetNextOpt(pc)) != -1) { }
+ while(poptGetNextOpt(pc) != -1) { }
poptFreeContext(pc);