Bug 536023: Change the type of the endptr parameter of der_TimeStringToTime
to fix a compiler warning. r=nelson. git-svn-id: svn://10.0.0.236/trunk@259456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
66dfd7adba
commit
629b2da1d5
@ -113,7 +113,7 @@ DER_TimeToUTCTime(SECItem *dst, int64 gmttime)
|
||||
|
||||
static SECStatus /* forward */
|
||||
der_TimeStringToTime(PRTime *dst, const char *string, int generalized,
|
||||
char **endptr);
|
||||
const char **endptr);
|
||||
|
||||
#define GEN_STRING 2 /* TimeString is a GeneralizedTime */
|
||||
#define UTC_STRING 0 /* TimeString is a UTCTime */
|
||||
@ -141,7 +141,7 @@ DER_UTCTimeToTime(int64 *dst, const SECItem *time)
|
||||
*/
|
||||
unsigned int i;
|
||||
char localBuf[20];
|
||||
char *end = NULL;
|
||||
const char *end = NULL;
|
||||
SECStatus rv;
|
||||
|
||||
if (!time || !time->data || time->len < 11 || time->len > 17) {
|
||||
@ -235,7 +235,7 @@ DER_GeneralizedTimeToTime(int64 *dst, const SECItem *time)
|
||||
*/
|
||||
unsigned int i;
|
||||
char localBuf[20];
|
||||
char *end = NULL;
|
||||
const char *end = NULL;
|
||||
SECStatus rv;
|
||||
|
||||
if (!time || !time->data || time->len < 13 || time->len > 19) {
|
||||
@ -262,7 +262,7 @@ DER_GeneralizedTimeToTime(int64 *dst, const SECItem *time)
|
||||
|
||||
static SECStatus
|
||||
der_TimeStringToTime(PRTime *dst, const char *string, int generalized,
|
||||
char **endptr)
|
||||
const char **endptr)
|
||||
{
|
||||
PRExplodedTime genTime;
|
||||
long hourOff = 0, minOff = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user