diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/expire.c | 4 | ||||
-rw-r--r-- | util/mandex.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util/expire.c b/util/expire.c index 5afa48ef..7268b64f 100644 --- a/util/expire.c +++ b/util/expire.c @@ -182,7 +182,7 @@ int main(int argc, char **argv) 'z', 'x', 'c', 'v', 'b', 'n', 'm', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', - 'Z', 'X', 'C', 'V', 'B', 'N', 'M', NULL}; + 'Z', 'X', 'C', 'V', 'B', 'N', 'M', 0}; /* default value */ db.days = DEF_DAYS; @@ -272,7 +272,7 @@ int main(int argc, char **argv) } } else{ // visit all boards - for( i = 0 ; dirs[i] != NULL ; ++i ) + for( i = 0 ; dirs[i] != 0 ; ++i ) visitdir(dirs[i]); } diff --git a/util/mandex.c b/util/mandex.c index e0334f9c..2ca7edee 100644 --- a/util/mandex.c +++ b/util/mandex.c @@ -156,7 +156,7 @@ int main(int argc, char* argv[]) 'z', 'x', 'c', 'v', 'b', 'n', 'm', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', - 'Z', 'X', 'C', 'V', 'B', 'N', 'M', NULL}; + 'Z', 'X', 'C', 'V', 'B', 'N', 'M', 0}; nice(10); while( (ch = getopt(argc, argv, "xh")) != -1 ){ @@ -214,7 +214,7 @@ int main(int argc, char* argv[]) nSorted = nb = 0; } - for( i = 0 ; dirs[i] != NULL ; ++i ){ + for( i = 0 ; dirs[i] != 0 ; ++i ){ sprintf(topdir, BBSHOME "/man/boards/%c", dirs[i]); chdir(topdir); if(!(dirp = opendir(topdir))) { |