summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-24 01:29:51 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-24 01:29:51 +0800
commit06a4d437e91b3b0165b6eafbf7eaf736816fc27c (patch)
treec2439330581b4d26feaa8605bfdde5bc344bd164 /mbbsd/cache.c
parent61c39a72f5cc21e6d0d708efbe13b52e311ddf61 (diff)
downloadpttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar.gz
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar.bz2
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar.lz
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar.xz
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.tar.zst
pttbbs-06a4d437e91b3b0165b6eafbf7eaf736816fc27c.zip
- (internal) refine visio callback
- (internal) move utility function to name.c, prepare for isolation git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4238 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 90339547..d6fc105d 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -252,38 +252,6 @@ setuserid(int num, const char *userid)
}
}
-#ifndef _BBS_UTIL_C_
-char *
-u_namearray(char buf[][IDLEN + 1], int *pnum, char *tag)
-{
- register char *ptr, tmp;
- register int n, total;
- char tagbuf[STRLEN];
- int ch, ch2, num;
-
- if (*tag == '\0') {
- *pnum = SHM->number;
- return SHM->userid[0];
- }
- for (n = 0; tag[n]; n++)
- tagbuf[n] = chartoupper(tag[n]);
- tagbuf[n] = '\0';
- ch = tagbuf[0];
- ch2 = ch - 'A' + 'a';
- total = SHM->number;
- for (n = num = 0; n < total; n++) {
- ptr = SHM->userid[n];
- tmp = *ptr;
- if (tmp == ch || tmp == ch2) {
- if (chkstr(tag, tagbuf, ptr))
- strcpy(buf[num++], ptr);
- }
- }
- *pnum = num;
- return buf[0];
-}
-#endif
-
void
getnewutmpent(const userinfo_t * up)
{