From: Volker Lendecke Date: Wed, 27 Nov 2019 07:35:05 +0000 (+0100) Subject: lib: Make stdin_new_passwd() static X-Git-Tag: ldb-2.1.0~487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7093356440d0828f133fe652b090125af51cd01a;p=thirdparty%2Fsamba.git lib: Make stdin_new_passwd() static It's only used in one place Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/source3/include/proto.h b/source3/include/proto.h index ebb956c0d5e..4eaca065902 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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 */ diff --git a/source3/utils/net_proto.h b/source3/utils/net_proto.h index 13058be8b8b..d67aafa9440 100644 --- a/source3/utils/net_proto.h +++ b/source3/utils/net_proto.h @@ -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 */ diff --git a/source3/utils/passwd_proto.h b/source3/utils/passwd_proto.h index 104e00a65c3..40998998ae7 100644 --- a/source3/utils/passwd_proto.h +++ b/source3/utils/passwd_proto.h @@ -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_ */ diff --git a/source3/utils/passwd_util.c b/source3/utils/passwd_util.c index 4884d63bf10..8edc6cf38d7 100644 --- a/source3/utils/passwd_util.c +++ b/source3/utils/passwd_util.c @@ -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;