From d570da1aeed86f0b5d51fbc4cf38233a5e661c92 Mon Sep 17 00:00:00 2001 From: wens Date: Fri, 30 Jan 2009 11:06:47 +0000 Subject: replace unixclient with toconnect git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/bbsnnrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'innbbsd/bbsnnrp.c') 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); } -- cgit v1.2.3