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

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

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

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;