diff options
author | Tim Potter <tpot@samba.org> | 2003-07-22 00:20:53 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-07-22 00:20:53 +0000 |
commit | 274f1f8806f091a38bbf65363d7edf681459b58d (patch) | |
tree | bb682c1a3617a08ca9edebe571db08e3a25752ca /source3/utils | |
parent | 63537d0add21301bc069a0cceac21cd36dbc51fd (diff) | |
download | samba-274f1f8806f091a38bbf65363d7edf681459b58d.tar.gz samba-274f1f8806f091a38bbf65363d7edf681459b58d.tar.bz2 samba-274f1f8806f091a38bbf65363d7edf681459b58d.zip |
Replace the eight (!) copies of dummy become/unbecome root with a single one.
(This used to be commit 8b818ce381595cdcb36631a2440d6aa0038805f1)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net.c | 15 | ||||
-rw-r--r-- | source3/utils/pdbedit.c | 15 | ||||
-rw-r--r-- | source3/utils/smbcontrol.c | 6 | ||||
-rw-r--r-- | source3/utils/smbpasswd.c | 15 | ||||
-rw-r--r-- | source3/utils/status.c | 4 |
5 files changed, 0 insertions, 55 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index f99b2bad84..a22d34a720 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -79,21 +79,6 @@ struct in_addr opt_dest_ip; extern BOOL AllowDebugChange; -/***************************************************************************** - stubb functions -****************************************************************************/ - -void become_root( void ) -{ - return; -} - -void unbecome_root( void ) -{ - return; -} - - uint32 get_sec_channel_type(const char *param) { if (!(param && *param)) { diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 96d0d3c057..c3e063eff0 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -51,21 +51,6 @@ #define MASK_ALWAYS_GOOD 0x0000001F #define MASK_USER_GOOD 0x00401F00 -/***************************************************************************** - stubb functions -****************************************************************************/ - -void become_root( void ) -{ - return; -} - -void unbecome_root( void ) -{ - return; -} - - /********************************************************* Add all currently available users to another db ********************************************************/ diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index b7333f2317..190627e2a5 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -591,12 +591,6 @@ static const struct { { NULL } }; -/* Yuck - we need these because we link to printing*.o even though - they aren't used. */ - -void become_root(void) {} -void unbecome_root(void) {} - /* Display usage information */ static void usage(poptContext *pc) diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index eade5331af..6ab6d35e73 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -37,21 +37,6 @@ static const char *remote_machine = NULL; static fstring ldap_secret; -/***************************************************************************** - stubb functions -****************************************************************************/ - -void become_root( void ) -{ - return; -} - -void unbecome_root( void ) -{ - return; -} - - /********************************************************* Print command usage on stderr and die. **********************************************************/ diff --git a/source3/utils/status.c b/source3/utils/status.c index 8e2cf87478..8bf67fc4d6 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -45,10 +45,6 @@ static int locks_only = 0; /* Added by RJS */ static BOOL processes_only=False; static int show_brl; -/* we need these because we link to locking*.o */ - void become_root(void) {} - void unbecome_root(void) {} - /* added by OH */ static void Ucrit_addUsername(const char *username) { |