diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-10 12:17:08 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-10 12:17:08 +0800 |
commit | 7c766bf44d652f4f4ffad199c3fc556f82195d1f (patch) | |
tree | af59791178a0c95d604038051fd24e8572adaeea /include | |
parent | 883bf638558fbc87bacccbf5ee2b065382337b4f (diff) | |
download | pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar.gz pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar.bz2 pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar.lz pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar.xz pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.tar.zst pttbbs-7c766bf44d652f4f4ffad199c3fc556f82195d1f.zip |
Change tobind/toconnect interface.
**OUTTACACHE is now UTMPD**
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4121 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/cmsys.h | 4 | ||||
-rw-r--r-- | include/pttstruct.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/cmsys.h b/include/cmsys.h index 7300183e..b077d627 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -64,8 +64,8 @@ extern void PttLock(int fd, int start, int size, int mode); /* net.c */ extern unsigned int ipstr2int(const char *ip); -extern int tobind(const char * host, int port); -extern int toconnect(const char *host, int port); +extern int tobind(const char *addr); +extern int toconnect(const char *addr); extern int toread(int fd, void *buf, int len); extern int towrite(int fd, const void *buf, int len); diff --git a/include/pttstruct.h b/include/pttstruct.h index ec116601..447ac05d 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -653,7 +653,7 @@ typedef struct { char y; } Horder_t; -#ifdef OUTTACACHE +#ifdef UTMPD typedef struct { int index; // 在 SHM->uinfo[index] int uid; // 避免在 cache server 上不同步, 再確認用. |