From 4617eab09ea42b678c3d6d18c635a0dda3d6ed5a Mon Sep 17 00:00:00 2001 From: wens Date: Fri, 30 Jan 2009 06:17:12 +0000 Subject: Use functions from common library. Reorder extern.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/bbsnnrp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'innbbsd/bbsnnrp.c') diff --git a/innbbsd/bbsnnrp.c b/innbbsd/bbsnnrp.c index 41d06b87..87e04aee 100644 --- a/innbbsd/bbsnnrp.c +++ b/innbbsd/bbsnnrp.c @@ -85,7 +85,7 @@ doterm(s) { printf("bbsnnrp terminated. Signal %d\n", s); writerc(&BBSNNRP); - if (isfile(LockFile)) + if (dashf(LockFile)) unlink(LockFile); exit(1); } @@ -355,7 +355,7 @@ stdinreadnews(bbsnnrp) bbsnnrp->nnrpin = oldfp; fclose(tmpfp); } - if (isfile(tmpfilename)) { + if (dashf(tmpfilename)) { unlink(tmpfilename); } return 0; @@ -588,7 +588,7 @@ flushrc(bbsnnrp) if (bbsnnrp->actdirty == 0) return; bak1 = (char *)strdup((char *)fileglue("%s.BAK", bbsnnrp->activefile)); - if (isfile(bak1)) { + if (dashf(bak1)) { myrename(bak1, (char *)fileglue("%s.BAK.OLD", bbsnnrp->activefile)); } #ifdef USE_MMAP @@ -1169,7 +1169,7 @@ main(argc, argv) if (inputtype == NntpInputType) { server = argv[optind]; active = argv[optind + 1]; - if (isfile(active)) { + 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); -- cgit v1.2.3