diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-06-14 16:54:23 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-06-14 16:54:23 +0000 |
commit | 35943ea8fc28773734246d002419ebfaf37af5e2 (patch) | |
tree | 9ae01e4f88024b963fe75d937f2743730907e4d4 | |
parent | e166f54328b2d09d5579ffc48dd7cc32496c7d1e (diff) | |
download | libgtop-35943ea8fc28773734246d002419ebfaf37af5e2.tar.gz |
Committing changes I made in 'src/daemon'.
-rw-r--r-- | sysdeps/common/gnuslib.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/common/gnuslib.c b/sysdeps/common/gnuslib.c index 29a9971c..f4ef268a 100644 --- a/sysdeps/common/gnuslib.c +++ b/sysdeps/common/gnuslib.c @@ -196,7 +196,7 @@ void disconnect_from_ipc_server(s,msgp,echo) */ void send_string(s,msg) int s; - CONST char *msg; + const char *msg; { #if 0 if (send(s,msg,strlen(msg),0) < 0) { @@ -290,13 +290,15 @@ int internet_addr(host) struct hostent *hp; /* pointer to host info for remote host */ IN_ADDR numeric_addr; /* host address */ - numeric_addr = inet_addr(host); + numeric_addr = inet_addr (host); if (!NUMERIC_ADDR_ERROR) return numeric_addr; - else if ((hp = gethostbyname(host)) != NULL) + else if ((hp = gethostbyname (host)) != NULL) return ((struct in_addr *)(hp->h_addr))->s_addr; - else + else { + glibtop_warn_io ("gethostbyname (%s)", host); return -1; + } } /* internet_addr */ |