summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-07-01 04:53:17 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-07-01 04:53:17 +0000
commitc6582dbe370705270e6164ff8212dbdddafd9250 (patch)
tree16995bf01183b34461fd95df3f96000a5d3f2547 /dbutil.c
parent709a3e75cfb242c1b7165e599a4ccc54198967ca (diff)
Make it compile, update for changes in channel structure.
--HG-- branch : agent-client extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dbutil.c b/dbutil.c
index 0680b75..59ffcbe 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -295,19 +295,16 @@ int dropbear_listen(const char* address, const char* port,
return nsock;
}
-/* Connect to a given unix socket. The socket is not non-blocking */
+/* Connect to a given unix socket. The socket is blocking */
#ifdef ENABLE_CONNECT_UNIX
-int connect_unix(const char* addr)
-{
+int connect_unix(const char* addr) {
struct sockaddr_un egdsock;
int fd = -1;
memset((void*)&egdsock, 0x0, sizeof(egdsock));
egdsock.sun_family = AF_UNIX;
strlcpy(egdsock.sun_path, addr, sizeof(egdsock.sun_path));
-
fd = socket(PF_UNIX, SOCK_STREAM, 0);
-
return fd;
}
#endif