diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-01-30 14:17:12 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-01-30 14:17:12 +0800 |
commit | 4617eab09ea42b678c3d6d18c635a0dda3d6ed5a (patch) | |
tree | 6e8d0207d1cedf8032ccb94159e50695388eabe7 /innbbsd/bbsnnrp.c | |
parent | ea44e808f2c7b77c8c92182aef1bd46e90baac23 (diff) | |
download | pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.gz pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.bz2 pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.lz pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.xz pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.zst pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.zip |
Use functions from common library.
Reorder extern.h
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbsnnrp.c')
-rw-r--r-- | innbbsd/bbsnnrp.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |