diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-05 22:36:25 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-05 22:36:25 +0800 |
commit | 8ae3f8c387cf444eb20a73ebb6ff412213913ddd (patch) | |
tree | b72d73d8debec81e831b02a1e299e7df60f94512 /util | |
parent | 2bff3f37cca7f2059e62ef99c354df43c8b5d305 (diff) | |
download | pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar.gz pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar.bz2 pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar.lz pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar.xz pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.tar.zst pttbbs-8ae3f8c387cf444eb20a73ebb6ff412213913ddd.zip |
.BOARDS => .BRD
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@82 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/initbbs.c | 4 | ||||
-rw-r--r-- | util/inndBM.c | 4 | ||||
-rw-r--r-- | util/poststat.c | 6 | ||||
-rw-r--r-- | util/showboard.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/util/initbbs.c b/util/initbbs.c index c70ab826..deab2c8b 100644 --- a/util/initbbs.c +++ b/util/initbbs.c @@ -1,4 +1,4 @@ -/* $Id: initbbs.c,v 1.2 2002/03/09 17:29:20 in2 Exp $ */ +/* $Id: initbbs.c,v 1.3 2002/04/05 14:36:25 in2 Exp $ */ #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -58,7 +58,7 @@ static void newboard(FILE *fp, boardheader_t *b) { } static void initBoards() { - FILE *fp = fopen(".BOARDS", "w"); + FILE *fp = fopen(".BRD", "w"); boardheader_t b; if(fp) { diff --git a/util/inndBM.c b/util/inndBM.c index 4f85bfd4..87b4d007 100644 --- a/util/inndBM.c +++ b/util/inndBM.c @@ -181,7 +181,7 @@ int main() strncpy(bcache[i].title + 5, "●", 2); brdshm->busystate = 0; - substitute_record(BBSHOME"/.BOARDS", &bcache[i],sizeof(boardheader_t),i+1); + substitute_record(BBSHOME"/.BRD", &bcache[i],sizeof(boardheader_t),i+1); } else if(!(bcache[i].brdattr & BRD_NOTRAN) && !istran[i]) { @@ -190,7 +190,7 @@ int main() bcache[i].brdattr = bcache[i].brdattr | BRD_NOTRAN; strncpy(bcache[i].title + 5, "◎", 2); brdshm->busystate = 0; - substitute_record(BBSHOME"/.BOARDS", &bcache[i],sizeof(boardheader_t),i+1); + substitute_record(BBSHOME"/.BRD", &bcache[i],sizeof(boardheader_t),i+1); } } diff --git a/util/poststat.c b/util/poststat.c index 3aa3cc94..2577f770 100644 --- a/util/poststat.c +++ b/util/poststat.c @@ -1,4 +1,4 @@ -/* $Id: poststat.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id: poststat.c,v 1.2 2002/04/05 14:36:25 in2 Exp $ */ /* 統計今日、週、月、年熱門話題 */ #include <stdio.h> @@ -146,7 +146,7 @@ resolve_boards() brdshm->busystate = 1; - if ((fd = open(".BOARDS", O_RDONLY)) > 0) + if ((fd = open(".BRD", O_RDONLY)) > 0) { brdshm->number = read(fd, bcache, MAX_BOARD * sizeof(boardheader_t)) / sizeof(boardheader_t); @@ -329,7 +329,7 @@ filter(board) int bid; bid = getbnum(board); - if (get_record(".BOARDS", &bh, sizeof(bh), bid) == -1) + if (get_record(".BRD", &bh, sizeof(bh), bid) == -1) return 1; if (bh.brdattr & BRD_NOCOUNT) return 1; diff --git a/util/showboard.c b/util/showboard.c index 3801dbb1..91593b12 100644 --- a/util/showboard.c +++ b/util/showboard.c @@ -1,4 +1,4 @@ -/* $Id: showboard.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id: showboard.c,v 1.2 2002/04/05 14:36:25 in2 Exp $ */ /* 看板一覽表(sorted) */ #include <stdio.h> @@ -28,7 +28,7 @@ int main(argc, argv) if (argc < 2) { - printf("Usage:\t%s .BOARDS [MAXUSERS]\n", argv[0]); + printf("Usage:\t%s .BRD [MAXUSERS]\n", argv[0]); exit(1); } |