summaryrefslogtreecommitdiffstats
path: root/innbbsd/bbsnnrp.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-30 19:06:47 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-30 19:06:47 +0800
commitd570da1aeed86f0b5d51fbc4cf38233a5e661c92 (patch)
tree29e943b44dd18441259162938aa38278fd9e23b5 /innbbsd/bbsnnrp.c
parent4617eab09ea42b678c3d6d18c635a0dda3d6ed5a (diff)
downloadpttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar.gz
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar.bz2
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar.lz
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar.xz
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.tar.zst
pttbbs-d570da1aeed86f0b5d51fbc4cf38233a5e661c92.zip
replace unixclient with toconnect
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbsnnrp.c')
-rw-r--r--innbbsd/bbsnnrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innbbsd/bbsnnrp.c b/innbbsd/bbsnnrp.c
index 87e04aee..c950fbf7 100644
--- a/innbbsd/bbsnnrp.c
+++ b/innbbsd/bbsnnrp.c
@@ -483,7 +483,7 @@ initsockets(server, bbsnnrp, type)
int nnrpfd;
int innbbsfd;
if (AskLocal) {
- innbbsfd = unixclient(DefaultPath, "tcp");
+ innbbsfd = toconnect(DefaultPath);
if (innbbsfd < 0) {
fprintf(stderr, "Connect to %s error. You may not run innbbsd\n", LOCALDAEMON);
/*
@@ -496,7 +496,7 @@ initsockets(server, bbsnnrp, type)
}
close(innbbsfd);
/* try again */
- innbbsfd = unixclient(DefaultPath, "tcp");
+ innbbsfd = toconnect(DefaultPath);
if (innbbsfd < 0) {
exit(3);
}