- Fixed compiler warnings related to using ctype macros on characters.
authorMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 24 Apr 2006 21:26:38 +0000 (21:26 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 24 Apr 2006 21:26:38 +0000 (21:26 +0000)
  An int cast was added.

mmsoftware/mmmail/src/mmpop3d/mmpop3d.c

index 1fbd988..373d4eb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mmpop3d.c,v 1.40.2.3 2005/11/24 09:01:36 mmondor Exp $ */
+/* $Id: mmpop3d.c,v 1.40.2.4 2006/04/24 21:26:38 mmondor Exp $ */
 
 /*
  * Copyright (C) 2001-2004, Matthew Mondor
@@ -84,7 +84,7 @@
 
 MMCOPYRIGHT("@(#) Copyright (c) 2001-2004\n\
 \tMatthew Mondor. All rights reserved.\n");
-MMRCSID("$Id: mmpop3d.c,v 1.40.2.3 2005/11/24 09:01:36 mmondor Exp $");
+MMRCSID("$Id: mmpop3d.c,v 1.40.2.4 2006/04/24 21:26:38 mmondor Exp $");
 
 
 
@@ -1076,7 +1076,7 @@ valid_host(char *host)
      */
     ptr = host;
     while (*ptr != '\0') {
-       if (!isalnum(*ptr) || *ptr == ' ')
+       if (!isalnum((int)*ptr) || *ptr == ' ')
            return (FALSE);
        else {
            /* Find next host part */
@@ -1102,7 +1102,7 @@ valid_host(char *host)
 inline static bool
 valid_char(char c)
 {
-    return (isalnum(c) || c == '.' || c == '-' || c == '_');
+    return (isalnum((int)c) || c == '.' || c == '-' || c == '_');
 }