The crypt_method string always points to a constant string. Add the const qualifier.
This commit is contained in:
parent
8289eabc55
commit
d85b926a14
@ -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>
|
2008-01-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/pwunconv.c: Remove prototype of l64a() (not used in
|
* src/pwunconv.c: Remove prototype of l64a() (not used in
|
||||||
|
@ -55,7 +55,7 @@ static int eflg = 0;
|
|||||||
static int md5flg = 0;
|
static int md5flg = 0;
|
||||||
static int sflg = 0;
|
static int sflg = 0;
|
||||||
|
|
||||||
static char *crypt_method = NULL;
|
static const char *crypt_method = NULL;
|
||||||
static long sha_rounds = 5000;
|
static long sha_rounds = 5000;
|
||||||
|
|
||||||
#ifdef SHADOWGRP
|
#ifdef SHADOWGRP
|
||||||
|
@ -54,7 +54,7 @@ static int eflg = 0;
|
|||||||
static int md5flg = 0;
|
static int md5flg = 0;
|
||||||
static int sflg = 0;
|
static int sflg = 0;
|
||||||
|
|
||||||
static char *crypt_method = NULL;
|
static const char *crypt_method = NULL;
|
||||||
static long sha_rounds = 5000;
|
static long sha_rounds = 5000;
|
||||||
|
|
||||||
static int is_shadow_pwd;
|
static int is_shadow_pwd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user