diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-05 05:07:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-05 05:07:05 +0000 |
commit | 2204475c87f3024ea8fd1fbd7385b2def617a46f (patch) | |
tree | 7ee33f6880d60f973dc592e718765f4ddab0c950 /source/smbd/server.c | |
parent | 94d63cc382ac0d8a523db98b93750225082b09b1 (diff) | |
download | samba-2204475c87f3024ea8fd1fbd7385b2def617a46f.tar.gz samba-2204475c87f3024ea8fd1fbd7385b2def617a46f.tar.xz samba-2204475c87f3024ea8fd1fbd7385b2def617a46f.zip |
tridge the destroyer returns!
prompted by the interpret_security() dead code that Jean-Francois
pointed out I added a make target "finddead" that finds potentially
dead (ie. unused) code. It spat out 304 function names ...
I went through these are deleted many of them, making others static
(finddead also reports functions that are used only in the local
file).
in doing this I have almost certainly deleted some useful code. I may
have even prevented compilation with some compile options. I
apologise. I decided it was better to get rid of this code now and add
back the one or two functions that are needed than to keep all this
baggage.
So, if I have done a bit too much "destroying" then let me know. Keep
the swearing to a minimum :)
One bit I didn't do is the ubibt code. Chris, can you look at that?
Heaps of unused functions there. Can they be made static?
Diffstat (limited to 'source/smbd/server.c')
-rw-r--r-- | source/smbd/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c index dadf2018c8e..5af62fd4a7e 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -52,7 +52,7 @@ extern pstring myhostname; /**************************************************************************** when exiting, take the whole family ****************************************************************************/ -void *dflt_sig(void) +static void *dflt_sig(void) { exit_server("caught signal"); return NULL; @@ -61,7 +61,7 @@ void *dflt_sig(void) /**************************************************************************** Send a SIGTERM to our process group. *****************************************************************************/ -void killkids(void) +static void killkids(void) { if(am_parent) kill(0,SIGTERM); } |