Commit e4f484b7 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] address compiler warnings

parent d868cce6
......@@ -58,6 +58,7 @@
#include <ctype.h>
#include <isc/tm.h>
#include <isc/util.h>
/*
* Portable conversion routines for struct tm, replacing
......@@ -148,7 +149,7 @@ isc_tm_timegm(struct tm *tm) {
char *
isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) {
char c;
char c, *ret;
const char *bp;
size_t len = 0;
int alt_format, i, split_year = 0;
......@@ -160,8 +161,8 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) {
alt_format = 0;
/* Eat up white-space. */
if (isspace(c)) {
while (isspace(*bp))
if (isspace((int) c)) {
while (isspace((int) *bp))
bp++;
fmt++;
......@@ -426,7 +427,7 @@ literal:
case 'n': /* Any kind of white-space. */
case 't':
LEGAL_ALT(0);
while (isspace(*bp))
while (isspace((int) *bp))
bp++;
break;
......@@ -439,5 +440,6 @@ literal:
}
/* LINTED functional specification */
return ((char *)bp);
DE_CONST(bp, ret);
return (ret);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment