masqmail
diff src/conf.c @ 14:a8f3424347dc
replaced number 0 with character \0 where appropriate
author | meillo@marmaro.de |
---|---|
date | Wed, 29 Oct 2008 21:21:26 +0100 |
parents | 49dab67fe461 |
children | 71605f542ecc |
line diff
1.1 --- a/src/conf.c Wed Oct 29 21:10:18 2008 +0100 1.2 +++ b/src/conf.c Wed Oct 29 21:21:26 2008 +0100 1.3 @@ -118,12 +118,12 @@ 1.4 DEBUG(6) fprintf(stderr, "parsing list %s\n", line); 1.5 1.6 p = line; 1.7 - while (*p != 0) { 1.8 + while (*p != '\0') { 1.9 q = buf; 1.10 1.11 while (*p && (*p != ';') && (q < buf + 255)) 1.12 *(q++) = *(p++); 1.13 - *q = 0; 1.14 + *q = '\0'; 1.15 1.16 if ((buf[0] == '/') && (read_file)) 1.17 /* item is a filename, include its contents */ 1.18 @@ -200,9 +200,9 @@ 1.19 1.20 p = line; 1.21 q = buf; 1.22 - while ((*p != 0) && (*p != ':') && (q < buf + 255)) 1.23 + while ((*p != '\0') && (*p != ':') && (q < buf + 255)) 1.24 *(q++) = *(p++); 1.25 - *q = 0; 1.26 + *q = '\0'; 1.27 1.28 iface = g_malloc(sizeof(interface)); 1.29 iface->address = g_strdup(buf); 1.30 @@ -229,9 +229,9 @@ 1.31 1.32 p = line; 1.33 q = buf; 1.34 - while ((*p != 0) && (*p != '/') && (q < buf + 255)) 1.35 + while ((*p != '\0') && (*p != '/') && (q < buf + 255)) 1.36 *(q++) = *(p++); 1.37 - *q = 0; 1.38 + *q = '\0'; 1.39 1.40 if ((addr.s_addr = inet_addr(buf)) != INADDR_NONE) { 1.41 if (*p) { 1.42 @@ -322,7 +322,7 @@ 1.43 ptr++; 1.44 c = fgetc(in); 1.45 } 1.46 - *ptr = 0; 1.47 + *ptr = '\0'; 1.48 ungetc(c, in); 1.49 1.50 if (c == EOF) { 1.51 @@ -336,7 +336,7 @@ 1.52 1.53 DEBUG(6) fprintf(stderr, "lval = %s\n", buf); 1.54 1.55 - return buf[0] != 0; 1.56 + return buf[0] != '\0'; 1.57 } 1.58 1.59 static gboolean 1.60 @@ -359,7 +359,7 @@ 1.61 ptr++; 1.62 c = fgetc(in); 1.63 } 1.64 - *ptr = 0; 1.65 + *ptr = '\0'; 1.66 ungetc(c, in); 1.67 } else { 1.68 gboolean escape = FALSE; 1.69 @@ -376,7 +376,7 @@ 1.70 } 1.71 c = fgetc(in); 1.72 } 1.73 - *ptr = 0; 1.74 + *ptr = '\0'; 1.75 } 1.76 1.77 eat_line_trailing(in);