diff options
-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); } |