From d85b926a14c807f44e1f80294b46ae714582b4b4 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 6 Jan 2008 12:26:20 +0000 Subject: [PATCH] The crypt_method string always points to a constant string. Add the const qualifier. --- ChangeLog | 5 +++++ src/chgpasswd.c | 2 +- src/chpasswd.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3acc0e6d..6273dfc4 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 1a992d85..f2bde98d 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 df98bae9..30d4e7eb 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; -- 2.40.0