summaryrefslogtreecommitdiffstats
path: root/innbbsd/receive_article.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-12 00:53:49 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-12 00:53:49 +0800
commit6610078a22d58184eb6deba40a67dda742954fbe (patch)
tree81feec9fba1f4916d7f8146d7c790bc25af7fdb5 /innbbsd/receive_article.c
parent4c2b88e9c74d936675a4a7a11cb068cab7cbe4f3 (diff)
downloadpttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.gz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.bz2
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.lz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.xz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.zst
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.zip
make the compiler happy!
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3026 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/receive_article.c')
-rw-r--r--innbbsd/receive_article.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c
index 6e2e754e..b9672edd 100644
--- a/innbbsd/receive_article.c
+++ b/innbbsd/receive_article.c
@@ -24,7 +24,10 @@
* cacnel_article_front(mid) --> cancel_article() --> bbspost_write_cancel();
*/
-
+#include "externs.h"
+#include <stdlib.h>
+#define _XOPEN_SOURCE /* glibc2 needs this */
+#include <time.h>
#ifndef PowerBBS
#include "innbbsconf.h"
#include "daemon.h"
@@ -489,7 +492,7 @@ receive_article()
}
int
-receive_control()
+receive_control(void)
{
char *boardhome, *fname;
char firstpath[MAXPATHLEN], *firstpathbase;
@@ -866,9 +869,8 @@ nolfilename(n, fpath)
sprintf(n->lockfn, "%s.lock", fpath);
}
-
-
-static int
+#if 0
+int
delete_record(const char *fpath, int size, int id)
{
nol my;
@@ -941,6 +943,7 @@ delete_record(const char *fpath, int size, int id)
close(fd);
return 0;
}
+#endif
int
cancel_article(homepath, board, file)