summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-22 23:25:44 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-22 23:25:44 +0000
commit22e62916d8c1a8633239c77bdd996490db869b50 (patch)
treef90b12307fcbc3de67e6f13c31ce53c27b22bb19 /source3/lib
parent1ce67b7672ab58afd76d0ad9cc0343e688c6770d (diff)
downloadsamba-22e62916d8c1a8633239c77bdd996490db869b50.tar.gz
samba-22e62916d8c1a8633239c77bdd996490db869b50.tar.bz2
samba-22e62916d8c1a8633239c77bdd996490db869b50.zip
- Use FUNCTION_MACRO, not __FUNCTION__.
- Add some const (This used to be commit e149e70717f38e082ce35d55f9b4d84ba8419af7)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/getsmbpass.c2
-rw-r--r--source3/lib/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/getsmbpass.c b/source3/lib/getsmbpass.c
index c271d55404..b6ae09b318 100644
--- a/source3/lib/getsmbpass.c
+++ b/source3/lib/getsmbpass.c
@@ -83,7 +83,7 @@ static int tcsetattr(int fd, int flags, struct sgttyb *t)
static struct termios t;
#endif /* SYSV_TERMIO */
-char *getsmbpass(char *prompt)
+char *getsmbpass(const char *prompt)
{
FILE *in, *out;
int echo_off;
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 4f564b332a..b67896c648 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1040,7 +1040,7 @@ BOOL get_mydomname(fstring my_domname)
Interpret a protocol description string, with a default.
****************************************************************************/
-int interpret_protocol(char *str,int def)
+int interpret_protocol(const char *str,int def)
{
if (strequal(str,"NT1"))
return(PROTOCOL_NT1);