]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove duplicate get_pass() prototypes
authorVolker Lendecke <vl@samba.org>
Wed, 27 Nov 2019 07:36:59 +0000 (08:36 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 2 Dec 2019 21:23:34 +0000 (21:23 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martins@samba.org>
source3/include/proto.h
source3/utils/net.c
source3/utils/net_proto.h
source3/utils/passwd_util.c
source3/utils/pdbedit.c
source3/utils/smbpasswd.c

index 4eaca065902186cc7d68a8f34fa5db5476e16e13..7d81038c6700a7a67fe6671629b988e37df5e10a 100644 (file)
@@ -909,10 +909,6 @@ NTSTATUS sessionid_traverse_read(int (*fn)(const char *key,
                                           void *private_data),
                                 void *private_data);
 
-/* The following definitions come from utils/passwd_util.c  */
-
-char *get_pass( const char *prompt, bool stdin_get);
-
 /* The following definitions come from lib/avahi.c */
 
 struct AvahiPoll *tevent_avahi_poll(TALLOC_CTX *mem_ctx,
index 71b9b07d7d716b33fdc0952be8a89dcefc136dd0..683b46794e491373faeb1be0681159291d1498fd 100644 (file)
@@ -51,6 +51,7 @@
 #include "cmdline_contexts.h"
 #include "lib/gencache.h"
 #include "auth/credentials/credentials.h"
+#include "source3/utils/passwd_proto.h"
 
 #ifdef WITH_FAKE_KASERVER
 #include "utils/net_afs.h"
index d67aafa9440975d909d47ae3c127ceb25fb523e3..d5387f50e46565d87151b67d6a0b62f736230036 100644 (file)
@@ -439,10 +439,6 @@ NTSTATUS net_lookup_name_from_sid(struct net_context *c,
 NTSTATUS net_lookup_sid_from_name(struct net_context *c, TALLOC_CTX *ctx,
                                  const char *full_name, struct dom_sid *pret_sid);
 
-/* The following definitions come from utils/passwd_util.c  */
-
-char *get_pass( const char *prompt, bool stdin_get);
-
 /* The following definitions come from utils/net_g_lock.c  */
 int net_g_lock(struct net_context *c, int argc, const char **argv);
 
index 8edc6cf38d7964cebb7b0f5d132ec222ddd0a0ad..edd2c52e242928538c0c29ce73896ad3a3ce182f 100644 (file)
@@ -25,6 +25,7 @@
 */
 
 #include "includes.h"
+#include "passwd_proto.h"
 
 /*************************************************************
  Utility function to prompt for passwords from stdin. Each
index b6ee806e190e030193f84faac4db2b5f13c2e54d..e0645a67423a5efc347245b7430e189aa38506c6 100644 (file)
@@ -26,6 +26,7 @@
 #include "../libcli/security/security.h"
 #include "passdb.h"
 #include "cmdline_contexts.h"
+#include "passwd_proto.h"
 
 #define BIT_BACKEND    0x00000004
 #define BIT_VERBOSE    0x00000008
index 858689b30128ad8ac65819ac6c6d0f0d666ebd26..40131205265b57707ceb1fc25e97f38d848f1073 100644 (file)
@@ -24,6 +24,7 @@
 #include "libsmb/proto.h"
 #include "passdb.h"
 #include "cmdline_contexts.h"
+#include "passwd_proto.h"
 
 /*
  * Next two lines needed for SunOS and don't