summaryrefslogtreecommitdiffstats
path: root/util/buildir.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
commitbdd31693cd3b73ea5a3a9bdc78540e0377df59ec (patch)
treeb9fde34a33abcfe5ffd492346691588ca479496c /util/buildir.c
parent74cd20707c189fc522e7b44653f1d59a6219586c (diff)
downloadpttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.gz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.bz2
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.lz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.xz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.zst
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.zip
Add statistic program for angel.
fix some warning and add svn:keywords Id for several files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/buildir.c')
-rw-r--r--util/buildir.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/buildir.c b/util/buildir.c
index 573a0178..6b0917e7 100644
--- a/util/buildir.c
+++ b/util/buildir.c
@@ -1,7 +1,12 @@
/* $Id$ */
#include "bbs.h"
-int dirselect(struct dirent *dir) {
+#ifdef __linux__
+int dirselect(const struct dirent *dir)
+#else
+int dirselect(struct dirent *dir)
+#endif
+{
return strchr("MDSGH", dir->d_name[0]) && dir->d_name[1] == '.';
}