summaryrefslogtreecommitdiffstats
path: root/innbbsd/receive_article.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/receive_article.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/receive_article.c')
-rw-r--r--innbbsd/receive_article.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c
index b7d309fc..28d2a4aa 100644
--- a/innbbsd/receive_article.c
+++ b/innbbsd/receive_article.c
@@ -408,7 +408,7 @@ receive_article()
}
#endif
- sprintf(xpath, "%s!%.*s", MYBBSID, sizeof(xpath) - strlen(MYBBSID) - 2, PATH);
+ sprintf(xpath, "%s!%.*s", MYBBSID, (int)(sizeof(xpath) - strlen(MYBBSID) - 2), PATH);
PATH = xpath;
for (pathptr = PATH; pathptr != NULL && (pathptr = strstr(pathptr, ".edu.tw")) != NULL;) {
if (pathptr != NULL) {
@@ -547,7 +547,7 @@ cancel_article_front(msgid)
char *ptr = (char *)DBfetch(msgid);
char *filelist, filename[2048];
char histent[4096];
- char firstpath[PATHLEN], *firstpathbase;
+ char firstpath[PATHLEN], *firstpathbase = firstpath;
if (ptr == NULL) {
bbslog("cancel failed(DBfetch): %s\n", msgid);
return 0;