summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-18 22:40:17 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-18 22:40:17 +0800
commitbf93dae7d3f658447897c797bc5828eb0e4ded80 (patch)
treeb295be29dc8fd2384d0e1b99c97d06d15c9ba9bd /mbbsd
parent3ccf26f9733059a4b04a27678629bd764a091c55 (diff)
downloadpttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar.gz
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar.bz2
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar.lz
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar.xz
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.tar.zst
pttbbs-bf93dae7d3f658447897c797bc5828eb0e4ded80.zip
rm old form '.fav'
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@702 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index e2950b28..7f725ea4 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.86 2003/03/15 12:26:18 in2 Exp $ */
+/* $Id: board.c,v 1.87 2003/03/18 14:40:17 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -227,7 +227,6 @@ static boardstat_t *nbrd = NULL;
char zapchange = 0, favchange = 0, choose_board_depth = 0;
#define STR_BBSRC ".bbsrc"
-#define STR_FAV ".fav"
#define STR_FAV2 ".fav2"
#ifndef CRITICAL_MEMORY
@@ -297,32 +296,6 @@ void load_brdbuf(void)
read(fd, favbuf, favsize);
close(fd);
}
- else{
- // translate old fav format(int array) to new format(char array)
- setuserfile(fname, STR_FAV);
- if( (fd = open(fname, O_RDONLY, 0600)) != -1 ){
- int *oldfav = (int *)malloc(size);
- read(fd, oldfav, size);
- close(fd);
-
- for( i = (numboards + 32) - 1 ; i >= 0 ; --i )
- favbuf[i] = oldfav[i];
- free(oldfav);
-
- setuserfile(fname, STR_FAV2);
- if( (fd = open(fname, O_WRONLY | O_CREAT, 0600)) != -1 ){
- size = numboards * sizeof(char);
- write(fd, favbuf, size);
- close(fd);
-
- // remove old favorite file
- setuserfile(fname, STR_FAV);
- unlink(fname);
- }
- else
- favchange = 1;
- }
- }
if( firsttime ){
for (i = 0; i < numboards; i++)