[Pkg-shadow-commits] r1662 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Jan 6 12:26:21 UTC 2008


Author: nekral-guest
Date: 2008-01-06 12:26:20 +0000 (Sun, 06 Jan 2008)
New Revision: 1662

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/chgpasswd.c
   upstream/trunk/src/chpasswd.c
Log:
The crypt_method string always points to a constant string. Add the const qualifier.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-01-06 12:12:30 UTC (rev 1661)
+++ upstream/trunk/ChangeLog	2008-01-06 12:26:20 UTC (rev 1662)
@@ -1,5 +1,10 @@
 2008-01-06  Nicolas François  <nicolas.francois at 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 at centraliens.net>
+
 	* src/pwunconv.c: Remove prototype of l64a() (not used in
 	pwunconv).
 

Modified: upstream/trunk/src/chgpasswd.c
===================================================================
--- upstream/trunk/src/chgpasswd.c	2008-01-06 12:12:30 UTC (rev 1661)
+++ upstream/trunk/src/chgpasswd.c	2008-01-06 12:26:20 UTC (rev 1662)
@@ -55,7 +55,7 @@
 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

Modified: upstream/trunk/src/chpasswd.c
===================================================================
--- upstream/trunk/src/chpasswd.c	2008-01-06 12:12:30 UTC (rev 1661)
+++ upstream/trunk/src/chpasswd.c	2008-01-06 12:26:20 UTC (rev 1662)
@@ -54,7 +54,7 @@
 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;




More information about the Pkg-shadow-commits mailing list