1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

Merge from HEAD - make Samba compile with -Wwrite-strings without additional

warnings.  (Adds a lot of const).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
-
parent 96e9fa5f22
commit 3a7458f947
131 changed files with 1197 additions and 1188 deletions

View File

@ -33,7 +33,7 @@ static BOOL got_pass = False, got_username = False;
static BOOL stdin_passwd_get = False;
static fstring user_name, user_password;
static char *new_passwd = NULL;
static char *remote_machine = NULL;
static const char *remote_machine = NULL;
static fstring ldap_secret;
@ -241,7 +241,7 @@ static char *stdin_new_passwd(void)
Used if the '-s' option is set to silently get passwords
to enable scripting.
*************************************************************/
static char *get_pass( char *prompt, BOOL stdin_get)
static char *get_pass( const char *prompt, BOOL stdin_get)
{
char *p;
if (stdin_get) {