1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-30 17:49:30 +03:00

r9790: remove 'set but not used' variables (reported by Jason Mader)

(This used to be commit 9c78f3b0d6)
This commit is contained in:
Gerald Carter
2005-08-30 11:41:45 +00:00
committed by Gerald (Jerry) Carter
parent a206a5efdd
commit 2f626e7b5a
2 changed files with 3 additions and 5 deletions

View File

@ -650,7 +650,6 @@ static BOOL open_sockets(BOOL isdaemon, int port)
pstring logfile; pstring logfile;
static BOOL opt_interactive; static BOOL opt_interactive;
poptContext pc; poptContext pc;
int opt;
struct poptOption long_options[] = { struct poptOption long_options[] = {
POPT_AUTOHELP POPT_AUTOHELP
{"daemon", 'D', POPT_ARG_VAL, &is_daemon, True, "Become a daemon(default)" }, {"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; global_nmb_port = NMB_PORT;
pc = poptGetContext("nmbd", argc, argv, long_options, 0); pc = poptGetContext("nmbd", argc, argv, long_options, 0);
while ((opt = poptGetNextOpt(pc)) != -1) ; while (poptGetNextOpt(pc) != -1) {};
poptFreeContext(pc); poptFreeContext(pc);
global_in_nmbd = True; global_in_nmbd = True;

View File

@ -1331,7 +1331,6 @@ static void printers_page(void)
**/ **/
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
int opt;
const char *page; const char *page;
poptContext pc; poptContext pc;
struct poptOption long_options[] = { struct poptOption long_options[] = {
@ -1368,7 +1367,7 @@ static void printers_page(void)
/* Parse command line options */ /* Parse command line options */
while((opt = poptGetNextOpt(pc)) != -1) { } while(poptGetNextOpt(pc) != -1) { }
poptFreeContext(pc); poptFreeContext(pc);