summaryrefslogtreecommitdiffstats
path: root/innbbsd/nocem.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:59 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:59 +0800
commitc8b05dac46a8c39cbdf2ac80e7dbb18077e157cb (patch)
tree060e36fbaf43db10838eb01fb23ac130005e1001 /innbbsd/nocem.c
parent6eba59f302a382cb031543031b2b273ee85d796f (diff)
downloadpttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.gz
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.bz2
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.lz
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.xz
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.zst
pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.zip
less warning
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2645 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/nocem.c')
-rw-r--r--innbbsd/nocem.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/innbbsd/nocem.c b/innbbsd/nocem.c
index a57834ed..cea4e088 100644
--- a/innbbsd/nocem.c
+++ b/innbbsd/nocem.c
@@ -3,6 +3,7 @@
* NCMverify(), NCMcancel(): return 0 success, otherwise fail;
*/
+#include <stdlib.h>
#include "nocem.h"
#define PGP5
#undef PGP2
@@ -64,7 +65,7 @@ ncmperm_t *
search_issuer(issuer)
char *issuer;
{
- ncmperm_t ncmt, *find;
+ ncmperm_t *find;
int i;
for (i = 0; i < NCMCOUNT; i++)
{
@@ -82,7 +83,7 @@ ncmperm_t *
search_issuer_type(issuer, type)
char *issuer, *type;
{
- ncmperm_t ncmt, *find;
+ ncmperm_t *find;
int i;
for (i = 0; i < NCMCOUNT; i++)
{
@@ -193,6 +194,7 @@ readNCMfile(inndhome)
return 0;
}
+int
NCMupdate(char *issuer, char *type)
{
FILE *fp;
@@ -228,6 +230,7 @@ NCMupdate(char *issuer, char *type)
sleep(1);
if (readNCMfile(INNDHOME) == -1)
bbslog("fail to readNCMfile\n");
+ return 0;
}
int tcpcommand(char *fmt, ...)
@@ -578,6 +581,7 @@ NCMcancel()
/* NoCeM-innbbsd */
/* ------------------------------------------------------------------ */
+void
initial_nocem()
{
bzero(SPAMMID[0], strlen(SPAMMID[0]) * num_spammid);
@@ -589,7 +593,6 @@ int
receive_nocem()
{
int rel;
- ncmperm_t *ncmt;
if (ncmdebug)
bbslog("NCM: receive %s\n", MSGID);