summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 03:29:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 03:29:46 +0800
commit415c9417ad19e6052ad0aeb088dae25b032e010e (patch)
tree4729adb4aa28fbc2f2a67026522b98dbca5ac870
parent4fe0dd77848bb2f5c4ae402ade23b0b4f8d9c449 (diff)
downloadpttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar.gz
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar.bz2
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar.lz
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar.xz
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.tar.zst
pttbbs-415c9417ad19e6052ad0aeb088dae25b032e010e.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2046 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/expire.c4
-rw-r--r--util/mandex.c4
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))) {