diff options
author | Jeremy Allison <jra@samba.org> | 2003-08-28 23:38:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-08-28 23:38:13 +0000 |
commit | afe845235a7fdeac5ea888db695da48f8df83349 (patch) | |
tree | 88cc1088151319b78d6cdedc4c804fcb98b19838 /source3/utils | |
parent | cad70ca6eda6498db9acdae97fade2c615c3ce5b (diff) | |
download | samba-afe845235a7fdeac5ea888db695da48f8df83349.tar.gz samba-afe845235a7fdeac5ea888db695da48f8df83349.tar.bz2 samba-afe845235a7fdeac5ea888db695da48f8df83349.zip |
Fixed warnings in secret code.
Jeremy.
(This used to be commit 86ebf990431903b12ec24a4d9af00d665e828145)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index 90f71f5035..080b0f4c8a 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -79,30 +79,6 @@ struct in_addr opt_dest_ip; extern BOOL AllowDebugChange; -/**************************************************************************************************/ -/* Utility function to prompt for password from stdin. Password entered must end with a newline. */ -/**************************************************************************************************/ -static char *stdin_new_passwd(void) -{ - static fstring new_pw; - size_t len; - - ZERO_ARRAY(new_pw); - - /* - * if no error is reported from fgets() and string at least contains - * the newline that ends the password, then replace the newline with - * a null terminator. - */ - if ( fgets(new_pw, sizeof(new_pw), stdin) != NULL) { - if ((len = strlen(new_pw)) > 0) { - if(new_pw[len-1] == '\n') - new_pw[len - 1] = 0; - } - } - return(new_pw); -} - uint32 get_sec_channel_type(const char *param) { if (!(param && *param)) { @@ -382,10 +358,8 @@ static int net_changetrustpw(int argc, const char **argv) static int net_changesecretpw(int argc, const char **argv) { char *trust_pw; - char trust_pw_hash[16]; uint32 sec_channel_type = SEC_CHAN_WKSTA; - if(opt_force) { trust_pw = getpass("Enter machine password: "); |