From d23267a6e42f739be6ba73c3f00ad51696e48c03 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 2 Jan 2006 16:15:20 +0000 Subject: fix nonstandard syntax. thanks yinyins.bbs@ptt2 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3258 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/fav.c | 6 ++++-- 1 file 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; -- cgit v1.2.3