summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/lib
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libnetworking/lib')
-rw-r--r--c/src/exec/libnetworking/lib/getprotoby.c4
-rw-r--r--c/src/exec/libnetworking/lib/syslog.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/c/src/exec/libnetworking/lib/getprotoby.c b/c/src/exec/libnetworking/lib/getprotoby.c
index b90c247a54..e0aa3bfbdb 100644
--- a/c/src/exec/libnetworking/lib/getprotoby.c
+++ b/c/src/exec/libnetworking/lib/getprotoby.c
@@ -21,7 +21,7 @@ getprotobyname (const char *name)
for (i = 0 ; i < (sizeof prototab / sizeof prototab[0]) ; i++) {
if (strcmp (name, prototab[i].p_name) == 0)
- return &prototab[i];
+ return (struct protoent *) &prototab[i];
}
return NULL;
}
@@ -36,7 +36,7 @@ getprotobynumber (int proto)
for (i = 0 ; i < (sizeof prototab / sizeof prototab[0]) ; i++) {
if (proto == prototab[i].p_proto)
- return &prototab[i];
+ return (struct protoent *) &prototab[i];
}
return NULL;
}
diff --git a/c/src/exec/libnetworking/lib/syslog.c b/c/src/exec/libnetworking/lib/syslog.c
index 7f468c81e6..0bb15bc78e 100644
--- a/c/src/exec/libnetworking/lib/syslog.c
+++ b/c/src/exec/libnetworking/lib/syslog.c
@@ -13,6 +13,8 @@
#include <sys/socket.h>
#include <netinet/in.h>
+#include <unistd.h>
+
static int LogStatus = LOG_CONS;
static const char *LogTag = "syslog";
static int LogFacility = LOG_USER;