The crypt_method string always points to a constant string. Add the const qualifier.
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user