The crypt_method string always points to a constant string. Add the const qualifier.

This commit is contained in:
nekral-guest committed 2008-01-06 12:26:20 +00:00
1 parent 8289eabc55
commit d85b926a14
3 files changed
+7 -2

No files matched your search

+1 -1
View 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
+1 -1
View 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;