summaryrefslogtreecommitdiffstats
path: root/mbbsd/fav.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-03 00:15:20 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-03 00:15:20 +0800
commitd23267a6e42f739be6ba73c3f00ad51696e48c03 (patch)
tree8ce520e21aab4fd301f1b1d6194025ff5087c7cf /mbbsd/fav.c
parent6eac320f0270a36f06b9c1f0fe51e37ba9ed3fc3 (diff)
downloadpttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar.gz
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar.bz2
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar.lz
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar.xz
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.tar.zst
pttbbs-d23267a6e42f739be6ba73c3f00ad51696e48c03.zip
fix nonstandard syntax.
thanks yinyins.bbs@ptt2 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3258 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r--mbbsd/fav.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 8e65c635..5497d04b 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -266,12 +266,14 @@ inline static void* fav_malloc(int size){
*/
static fav_type_t *fav_item_allocate(int type)
{
- int size = get_type_size(type);
+ int size;
+ fav_type_t *fp;
+ size = get_type_size(type);
if (!size)
return NULL;
- fav_type_t *ft = (fav_type_t *)fav_malloc(sizeof(fav_type_t));
+ ft = (fav_type_t *)fav_malloc(sizeof(fav_type_t));
ft->fp = fav_malloc(size);
ft->type = type;
return ft;