summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-02 18:58:55 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-02 18:58:55 +0000
commit670764e38c236e2d8ea295ca04889c8d1650ef33 (patch)
tree8d331dabdd054d22c37e79762b307c91ee2b63a3
parente79de1706117db0b7142cf4d689b706921d1beae (diff)
downloadsamba-670764e38c236e2d8ea295ca04889c8d1650ef33.tar.gz
samba-670764e38c236e2d8ea295ca04889c8d1650ef33.tar.bz2
samba-670764e38c236e2d8ea295ca04889c8d1650ef33.zip
Remove obsolete function usage and some unused variables
(This used to be commit 162431a88ccb0811ae9873ce4ceda11d2f1de8b7)
-rw-r--r--source3/smbd/server.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index f2299d797f..de453fb12b 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -3,6 +3,7 @@
Main SMB server routines
Copyright (C) Andrew Tridgell 1992-1998
Copyright (C) Martin Pool 2002
+ Copyright (C) Jelmer Vernooij 2002
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -612,43 +613,16 @@ static void init_structs(void )
}
/****************************************************************************
- Usage on the program.
-****************************************************************************/
-
-static void usage(char *pname)
-{
-
- d_printf("Usage: %s [-DaioPh?Vb] [-d debuglevel] [-l log basename] [-p port]\n", pname);
- d_printf(" [-O socket options] [-s services file]\n");
- d_printf("\t-D Become a daemon (default)\n");
- d_printf("\t-i Run interactive (not a daemon)\n" );
- d_printf("\t-h Print usage\n");
- d_printf("\t-? Print usage\n");
- d_printf("\t-V Print version\n");
- d_printf("\t-b Print build options\n");
- d_printf("\t-d debuglevel Set the debuglevel\n");
- d_printf("\t-l log basename. Basename for log/debug files\n");
- d_printf("\t-p port Listen on the specified port\n");
- d_printf("\t-O socket options Socket options\n");
- d_printf("\t-s services file. Filename of services file\n");
- d_printf("\n");
-}
-
-/****************************************************************************
main program.
****************************************************************************/
int main(int argc,const char *argv[])
{
- extern BOOL AllowDebugChange;
- extern char *optarg;
/* shall I run as a daemon */
BOOL is_daemon = False;
BOOL interactive = False;
- BOOL specified_logfile = False;
char *ports = NULL;
int opt;
- pstring logfile;
poptContext pc;
struct poptOption long_options[] = {