aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlib.c')
-rw-r--r--xlib.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/xlib.c b/xlib.c
index e48ec39..9c8798c 100644
--- a/xlib.c
+++ b/xlib.c
@@ -34,17 +34,3 @@ char *xstrdup(const char *str)
return s;
}
-int init_sockaddr(struct sockaddr_in *addr, const char *host)
-{
- memset((char *) addr, 0, sizeof(struct sockaddr_in));
- addr->sin_family = AF_INET;
- if (inet_aton(host, &addr->sin_addr) == 0) {
- struct hostent *hp;
- hp = gethostbyname(host);
- if (!hp)
- return -1;
- memcpy(&addr->sin_addr, hp->h_addr, 4);
- }
- return 0;
-}
-