diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
commit | e8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch) | |
tree | eb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/xchatd.c | |
parent | c0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff) | |
download | pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.gz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.bz2 pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.lz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.xz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.zst pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.zip |
only one shared memory
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/xchatd.c')
-rw-r--r-- | util/xchatd.c | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/util/xchatd.c b/util/xchatd.c index 46fba147..97cb33fe 100644 --- a/util/xchatd.c +++ b/util/xchatd.c @@ -1,25 +1,5 @@ -/* $Id: xchatd.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <netdb.h> -#include <fcntl.h> -#include <signal.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/wait.h> -#include <sys/ioctl.h> -#include <sys/socket.h> -#include <time.h> -#include <sys/resource.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#include "config.h" -#include "pttstruct.h" -#include "util.h" -#include "perm.h" -#include "common.h" +/* $Id: xchatd.c,v 1.2 2002/06/06 21:34:15 in2 Exp $ */ +#include "bbs.h" #include "xchatd.h" #define SERVER_USAGE @@ -598,7 +578,7 @@ list_belong(list, userno) static void -do_send(nfds, wset, msg, number) +Xdo_send(nfds, wset, msg, number) int nfds; fd_set *wset; char *msg; @@ -686,10 +666,10 @@ send_to_room(room, msg, userno, number) else sprintf(sendbuf, "%3d", number); - do_send(max, wptr, sendbuf); + Xdo_send(max, wptr, sendbuf); } else - do_send(max, wptr, msg); + Xdo_send(max, wptr, msg); } } @@ -720,10 +700,10 @@ send_to_user(user, msg, userno, number) sprintf(sendbuf, "%3d %s", number, msg); else sprintf(sendbuf, "%3d", number); - do_send(sock, wptr, sendbuf); + Xdo_send(sock, wptr, sendbuf); } else - do_send(sock, wptr, msg); + Xdo_send(sock, wptr, msg); } } @@ -737,7 +717,7 @@ send_to_sock(sock, msg) /* Thor: unused */ FD_ZERO(wptr = &wset); FD_SET(sock, wptr); - do_send(sock, wptr, msg); + Xdo_send(sock, wptr, msg); } #endif |