]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Make stdin_new_passwd() static
authorVolker Lendecke <vl@samba.org>
Wed, 27 Nov 2019 07:35:05 +0000 (08:35 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 2 Dec 2019 21:23:34 +0000 (21:23 +0000)
It's only used in one place

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martins@samba.org>
source3/include/proto.h
source3/utils/net_proto.h
source3/utils/passwd_proto.h
source3/utils/passwd_util.c

index ebb956c0d5e6757dc540229b733e2bc66107e5ef..4eaca065902186cc7d68a8f34fa5db5476e16e13 100644 (file)
@@ -911,7 +911,6 @@ NTSTATUS sessionid_traverse_read(int (*fn)(const char *key,
 
 /* The following definitions come from utils/passwd_util.c  */
 
-char *stdin_new_passwd( void);
 char *get_pass( const char *prompt, bool stdin_get);
 
 /* The following definitions come from lib/avahi.c */
index 13058be8b8b3b2317d90098a11a839ea9d4cf552..d67aafa9440975d909d47ae3c127ceb25fb523e3 100644 (file)
@@ -441,7 +441,6 @@ NTSTATUS net_lookup_sid_from_name(struct net_context *c, TALLOC_CTX *ctx,
 
 /* The following definitions come from utils/passwd_util.c  */
 
-char *stdin_new_passwd( void);
 char *get_pass( const char *prompt, bool stdin_get);
 
 /* The following definitions come from utils/net_g_lock.c  */
index 104e00a65c3545e0ab90c290b1a30a65eec881de..40998998ae7d42b30754a912c099e54db30bef17 100644 (file)
@@ -26,7 +26,6 @@
 
 /* The following definitions come from utils/passwd_util.c  */
 
-char *stdin_new_passwd( void);
 char *get_pass( const char *prompt, bool stdin_get);
 
 #endif /*  _PASSWD_PROTO_H_  */
index 4884d63bf10984c271de794a90e90db2d0a4f396..8edc6cf38d7964cebb7b0f5d132ec222ddd0a0ad 100644 (file)
@@ -30,7 +30,7 @@
  Utility function to prompt for passwords from stdin. Each
  password entered must end with a newline.
 *************************************************************/
-char *stdin_new_passwd( void)
+static char *stdin_new_passwd( void)
 {
        static fstring new_pw;
        size_t len;