From: nekral-guest Date: Sun, 6 Jan 2008 12:26:20 +0000 (+0000) Subject: The crypt_method string always points to a constant string. Add the const qualifier. X-Git-Tag: 4.1.1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85b926a14c807f44e1f80294b46ae714582b4b4;p=thirdparty%2Fshadow.git The crypt_method string always points to a constant string. Add the const qualifier. --- diff --git a/ChangeLog b/ChangeLog index 3acc0e6db..6273dfc47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-06 Nicolas François + + * src/chpasswd.c, src/chgpasswd.c: The crypt_method string always + points to a constant string. Add the const qualifier. + 2008-01-06 Nicolas François * src/pwunconv.c: Remove prototype of l64a() (not used in diff --git a/src/chgpasswd.c b/src/chgpasswd.c index 1a992d858..f2bde98df 100644 --- a/src/chgpasswd.c +++ b/src/chgpasswd.c @@ -55,7 +55,7 @@ static int eflg = 0; static int md5flg = 0; static int sflg = 0; -static char *crypt_method = NULL; +static const char *crypt_method = NULL; static long sha_rounds = 5000; #ifdef SHADOWGRP diff --git a/src/chpasswd.c b/src/chpasswd.c index df98bae97..30d4e7eb2 100644 --- a/src/chpasswd.c +++ b/src/chpasswd.c @@ -54,7 +54,7 @@ static int eflg = 0; static int md5flg = 0; static int sflg = 0; -static char *crypt_method = NULL; +static const char *crypt_method = NULL; static long sha_rounds = 5000; static int is_shadow_pwd;