summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-17 14:02:06 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:13 +0100
commitc68e3d8d652109edd95999755b31fd123bbffc90 (patch)
tree4924b1c0ea412eba4b35c112f2ed72402de04d06 /source4
parentde0343b77bcbe0ad19f02c0894f703ade4d7fff2 (diff)
downloadsamba-c68e3d8d652109edd95999755b31fd123bbffc90.tar.gz
samba-c68e3d8d652109edd95999755b31fd123bbffc90.tar.bz2
samba-c68e3d8d652109edd95999755b31fd123bbffc90.zip
r25685: rename getsmbpass -> rep_getpass and provide the function prototype
metze (cherry picked from commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e) (This used to be commit cd5069a8ca17a3a14814c0fbf55f113690291165)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/getpass.c2
-rw-r--r--source4/lib/replace/system/passwd.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/replace/getpass.c b/source4/lib/replace/getpass.c
index f4819e9df5..1d13461573 100644
--- a/source4/lib/replace/getpass.c
+++ b/source4/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/source4/lib/replace/system/passwd.h b/source4/lib/replace/system/passwd.h
index 4e858fc89c..53d35e7b87 100644
--- a/source4/lib/replace/system/passwd.h
+++ b/source4/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