Committing changes I made in 'src/daemon'.

This commit is contained in:
Martin Baulig
1998-06-14 16:54:23 +00:00
parent e166f54328
commit 35943ea8fc

View File

@@ -196,7 +196,7 @@ void disconnect_from_ipc_server(s,msgp,echo)
*/ */
void send_string(s,msg) void send_string(s,msg)
int s; int s;
CONST char *msg; const char *msg;
{ {
#if 0 #if 0
if (send(s,msg,strlen(msg),0) < 0) { if (send(s,msg,strlen(msg),0) < 0) {
@@ -295,8 +295,10 @@ int internet_addr(host)
return numeric_addr; return numeric_addr;
else if ((hp = gethostbyname (host)) != NULL) else if ((hp = gethostbyname (host)) != NULL)
return ((struct in_addr *)(hp->h_addr))->s_addr; return ((struct in_addr *)(hp->h_addr))->s_addr;
else else {
glibtop_warn_io ("gethostbyname (%s)", host);
return -1; return -1;
}
} /* internet_addr */ } /* internet_addr */