summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-15 15:42:13 +0200
committerStefan Metzmacher <metze@samba.org>2007-10-15 15:42:13 +0200
commitc08cd08acc74db1f7b5620ad346131a9d77b0a08 (patch)
tree0d47c70791c93ae03dc60fd970a761c6e3aefe76
parentd5712f071a819aeb079e6f529df8d7bbd27ac2ac (diff)
downloadsamba-c08cd08acc74db1f7b5620ad346131a9d77b0a08.tar.gz
samba-c08cd08acc74db1f7b5620ad346131a9d77b0a08.tar.bz2
samba-c08cd08acc74db1f7b5620ad346131a9d77b0a08.zip
rename getsmbpass -> rep_getpass and provide the function prototype
metze (This used to be commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
-rw-r--r--source3/lib/replace/getpass.c2
-rw-r--r--source3/lib/replace/system/passwd.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/replace/getpass.c b/source3/lib/replace/getpass.c
index f4819e9df5..1d13461573 100644
--- a/source3/lib/replace/getpass.c
+++ b/source3/lib/replace/getpass.c
@@ -138,7 +138,7 @@ static void gotintr_sig(void)
in_fd = -1;
}
-char *getsmbpass(const char *prompt)
+char *rep_getpass(const char *prompt)
{
FILE *in, *out;
int echo_off;
diff --git a/source3/lib/replace/system/passwd.h b/source3/lib/replace/system/passwd.h
index 4e858fc89c..53d35e7b87 100644
--- a/source3/lib/replace/system/passwd.h
+++ b/source3/lib/replace/system/passwd.h
@@ -65,7 +65,8 @@
#endif
#ifdef REPLACE_GETPASS
-#define getpass(prompt) getsmbpass((prompt))
+#define getpass(prompt) rep_getpass(prompt)
+char *rep_getpass(const char *prompt);
#endif
#ifndef NGROUPS_MAX