]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
The crypt_method string always points to a constant string. Add the const qualifier.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:26:20 +0000 (12:26 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 12:26:20 +0000 (12:26 +0000)
ChangeLog
src/chgpasswd.c
src/chpasswd.c

index 3acc0e6db7e209eadeaa2197411ca2f3b946a859..6273dfc479cbc77e791eb54ab30db2991b9009e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-06  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * 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  <nicolas.francois@centraliens.net>
 
        * src/pwunconv.c: Remove prototype of l64a() (not used in
index 1a992d85871908f99863e5cb7ad3499095729b2b..f2bde98df6ae301459e775a847ca3b1637717298 100644 (file)
@@ -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
index df98bae978ca462f23dc1d91b6b6f25bc9e5ec14..30d4e7eb2a2d5b3c489498232190d3a5944703cb 100644 (file)
@@ -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;