summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 01:11:37 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 01:11:37 +0800
commite803619bc6156837591746b54bd2796127d07a28 (patch)
treef77f4d110b67dd032764ae906c16252023e863dd /mbbsd/cache.c
parent65ff9f98b70203b08ed8238c6ed389f21c61f289 (diff)
downloadpttbbs-e803619bc6156837591746b54bd2796127d07a28.tar
pttbbs-e803619bc6156837591746b54bd2796127d07a28.tar.gz
pttbbs-e803619bc6156837591746b54bd2796127d07a28.tar.bz2
pttbbs-e803619bc6156837591746b54bd2796127d07a28.tar.lz
pttbbs-e803619bc6156837591746b54bd2796127d07a28.tar.xz
pttbbs-e803619bc6156837591746b54bd2796127d07a28.tar.zst
pttbbs-e803619bc6156837591746b54bd2796127d07a28.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 054bd16b..2182423f 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.10 2002/04/15 17:07:11 ptt Exp $ */
+/* $Id: cache.c,v 1.11 2002/04/15 17:11:37 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1026,14 +1026,13 @@ int hbflcheck(int bid, int uid)
}
#ifdef MDCACHE
-int cachepath(char *cpath, const char *fpath)
+void cachepath(char *cpath, const char *fpath)
{
char *ptr;
snprintf(cpath, sizeof(cpath), "cache/%s", fpath);
for( ptr = &cpath[6] ; *ptr != 0 ; ++ptr )
if( *ptr == '/' )
*ptr = '.';
- return cpath;
}
int updatemdcache(const char *CPATH, const char *fpath)