Fix compiler warnings on NetBSD
This commit is contained in:
parent
0168b405a3
commit
584bf9382b
5 changed files with 8 additions and 7 deletions
|
@ -204,7 +204,7 @@ CPS_NormalizeLine(char *line)
|
|||
|
||||
/* Remove white-space at beginning and replace white-spaces with space char */
|
||||
for (p = q = line; *p; p++) {
|
||||
if (isspace(*p)) {
|
||||
if (isspace((unsigned char)*p)) {
|
||||
if (!space)
|
||||
*q++ = ' ';
|
||||
space = 1;
|
||||
|
@ -234,15 +234,15 @@ CPS_SplitWord(char *line)
|
|||
char *p = line, *q = line;
|
||||
|
||||
/* Skip white-space before the word */
|
||||
while (*q && isspace(*q))
|
||||
while (*q && isspace((unsigned char)*q))
|
||||
q++;
|
||||
|
||||
/* Move the word to the beginning */
|
||||
while (*q && !isspace(*q))
|
||||
while (*q && !isspace((unsigned char)*q))
|
||||
*p++ = *q++;
|
||||
|
||||
/* Find the next word */
|
||||
while (*q && isspace(*q))
|
||||
while (*q && isspace((unsigned char)*q))
|
||||
q++;
|
||||
|
||||
*p = '\0';
|
||||
|
|
|
@ -2532,7 +2532,7 @@ LookupWord (buff)
|
|||
/* Make it lowercase. */
|
||||
for (p = buff; *p; p++)
|
||||
if (ISUPPER ((unsigned char) *p))
|
||||
*p = tolower (*p);
|
||||
*p = tolower ((unsigned char) *p);
|
||||
|
||||
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
||||
{
|
||||
|
|
|
@ -711,7 +711,7 @@ LookupWord (buff)
|
|||
/* Make it lowercase. */
|
||||
for (p = buff; *p; p++)
|
||||
if (ISUPPER ((unsigned char) *p))
|
||||
*p = tolower (*p);
|
||||
*p = tolower ((unsigned char) *p);
|
||||
|
||||
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
||||
{
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#ifndef GOT_LOGGING_H
|
||||
#define GOT_LOGGING_H
|
||||
|
||||
#include "sysincl.h"
|
||||
|
||||
/* Flag indicating whether debug messages are logged */
|
||||
extern int log_debug_enabled;
|
||||
|
||||
|
|
|
@ -281,7 +281,6 @@ SYS_NetBSD_Initialise(void)
|
|||
};
|
||||
|
||||
kvm_t *kt;
|
||||
FILE *fp;
|
||||
|
||||
kt = kvm_open(NULL, NULL, NULL, O_RDONLY, NULL);
|
||||
if (!kt) {
|
||||
|
|
Loading…
Reference in a new issue