summaryrefslogtreecommitdiffstats
path: root/innbbsd/bbsnnrp.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-02-01 23:48:41 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-02-01 23:48:41 +0800
commite7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d (patch)
tree4158c7f362b07f737a3a6790241f1970c491afe2 /innbbsd/bbsnnrp.c
parenteb02b264ab76ed138546da08deba14e64ffc22e1 (diff)
downloadpttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar.gz
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar.bz2
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar.lz
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar.xz
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.tar.zst
pttbbs-e7c8f48700a5f6e70f4c4d7e5f8171ffdc06ff6d.zip
Fix some compile warnings
Remove unused code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4437 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbsnnrp.c')
-rw-r--r--innbbsd/bbsnnrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innbbsd/bbsnnrp.c b/innbbsd/bbsnnrp.c
index f2dc3b98..11c4eb69 100644
--- a/innbbsd/bbsnnrp.c
+++ b/innbbsd/bbsnnrp.c
@@ -361,7 +361,7 @@ stdinreadnews(bbsnnrp)
return 0;
}
-static char *ACT_BUF, *RC_BUF;
+//static char *ACT_BUF, *RC_BUF;
int ACT_COUNT;
int
@@ -1172,7 +1172,7 @@ main(argc, argv)
if (dashf(active)) {
strncpy(BBSNNRP.activefile, active, sizeof(BBSNNRP.activefile));
} else if (strchr(active, '/') == NULL) {
- sprintf(BBSNNRP.activefile, "%s/innd/%.*s", BBSHOME, sizeof(BBSNNRP.activefile) - 7 - strlen(BBSHOME), active);
+ sprintf(BBSNNRP.activefile, "%s/innd/%.*s", BBSHOME, (int)(sizeof(BBSNNRP.activefile) - 7 - strlen(BBSHOME)), active);
} else {
strncpy(BBSNNRP.activefile, active, sizeof(BBSNNRP.activefile));
}