OSSP CVS Repository

ossp - Check-in [715]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 715
Date: 2001-Aug-21 09:44:32 (local)
2001-Aug-21 07:44:32 (UTC)
User:thl
Branch:
Comment: isdigit() paramters casted to int. Now only a single warning remains on solaris (string length in line 509).
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp.c      1.21 -> 1.22     6 inserted, 6 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.21 -> 1.22

--- lmtp2nntp.c  2001/08/21 07:40:41     1.21
+++ lmtp2nntp.c  2001/08/21 07:44:32     1.22
@@ -195,19 +195,19 @@
                     ctx->option_deliverymodefakedsn    = &optarg[4];
 
                     if (   strlen(ctx->option_deliverymodefakestatus) != 3
-                        || !isdigit(ctx->option_deliverymodefakestatus[0])
-                        || !isdigit(ctx->option_deliverymodefakestatus[1])
-                        || !isdigit(ctx->option_deliverymodefakestatus[2])) {
+                        || !isdigit((int)ctx->option_deliverymodefakestatus[0])
+                        || !isdigit((int)ctx->option_deliverymodefakestatus[1])
+                        || !isdigit((int)ctx->option_deliverymodefakestatus[2])) {
                             fprintf(stderr, "%s:Error: Invalid status in format \"%s\" to option -d\n", progname, optarg);
                             exit(ERR_EXECUTION);
                         }
 
                     if (   (strlen(ctx->option_deliverymodefakedsn) != 5)
-                        || !isdigit(ctx->option_deliverymodefakedsn[0])
+                        || !isdigit((int)ctx->option_deliverymodefakedsn[0])
                         || (ctx->option_deliverymodefakedsn[1] != '.')
-                        || !isdigit(ctx->option_deliverymodefakedsn[2])
+                        || !isdigit((int)ctx->option_deliverymodefakedsn[2])
                         || (ctx->option_deliverymodefakedsn[3] != '.')
-                        || !isdigit(ctx->option_deliverymodefakedsn[4])
+                        || !isdigit((int)ctx->option_deliverymodefakedsn[4])
                         || (ctx->option_deliverymodefakedsn[0] != ctx->option_deliverymodefakestatus[0])) {
                             fprintf(stderr, "%s:Error: Invalid dsn in format \"%s\" to option -d\n", progname, optarg);
                             exit(ERR_EXECUTION);

CVSTrac 2.0.1