Mercurial > masqmail-0.2
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 wrap: on
line diff
--- a/src/conf.c Wed Oct 29 21:10:18 2008 +0100 +++ b/src/conf.c Wed Oct 29 21:21:26 2008 +0100 @@ -118,12 +118,12 @@ DEBUG(6) fprintf(stderr, "parsing list %s\n", line); p = line; - while (*p != 0) { + while (*p != '\0') { q = buf; while (*p && (*p != ';') && (q < buf + 255)) *(q++) = *(p++); - *q = 0; + *q = '\0'; if ((buf[0] == '/') && (read_file)) /* item is a filename, include its contents */ @@ -200,9 +200,9 @@ p = line; q = buf; - while ((*p != 0) && (*p != ':') && (q < buf + 255)) + while ((*p != '\0') && (*p != ':') && (q < buf + 255)) *(q++) = *(p++); - *q = 0; + *q = '\0'; iface = g_malloc(sizeof(interface)); iface->address = g_strdup(buf); @@ -229,9 +229,9 @@ p = line; q = buf; - while ((*p != 0) && (*p != '/') && (q < buf + 255)) + while ((*p != '\0') && (*p != '/') && (q < buf + 255)) *(q++) = *(p++); - *q = 0; + *q = '\0'; if ((addr.s_addr = inet_addr(buf)) != INADDR_NONE) { if (*p) { @@ -322,7 +322,7 @@ ptr++; c = fgetc(in); } - *ptr = 0; + *ptr = '\0'; ungetc(c, in); if (c == EOF) { @@ -336,7 +336,7 @@ DEBUG(6) fprintf(stderr, "lval = %s\n", buf); - return buf[0] != 0; + return buf[0] != '\0'; } static gboolean @@ -359,7 +359,7 @@ ptr++; c = fgetc(in); } - *ptr = 0; + *ptr = '\0'; ungetc(c, in); } else { gboolean escape = FALSE; @@ -376,7 +376,7 @@ } c = fgetc(in); } - *ptr = 0; + *ptr = '\0'; } eat_line_trailing(in);