s3:utils: Make strings const passed to password_change() in smbpasswd
authorAndreas Schneider <asn@samba.org>
Fri, 18 Aug 2017 14:13:15 +0000 (16:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Aug 2017 11:16:20 +0000 (13:16 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
source3/utils/smbpasswd.c

index ec162fdbfb054ddfd4400680487dd096ac58b461..5c75f48189d434bcfe57796f8a6f9fa3775100f0 100644 (file)
@@ -243,8 +243,9 @@ static char *prompt_for_new_password(bool stdin_get)
  Change a password either locally or remotely.
 *************************************************************/
 
-static NTSTATUS password_change(const char *remote_mach, char *username, 
-                               char *old_passwd, char *new_pw,
+static NTSTATUS password_change(const char *remote_mach,
+                               const char *username,
+                               const char *old_passwd, const char *new_pw,
                                int local_flags)
 {
        NTSTATUS ret;