summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ompipe.c1
-rw-r--r--tools/omusrmsg.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/ompipe.c b/tools/ompipe.c
index c2435438..967a2841 100644
--- a/tools/ompipe.c
+++ b/tools/ompipe.c
@@ -42,6 +42,7 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <sys/file.h>
#include "syslogd.h"
diff --git a/tools/omusrmsg.c b/tools/omusrmsg.c
index ec4bf6d0..10b26e37 100644
--- a/tools/omusrmsg.c
+++ b/tools/omusrmsg.c
@@ -153,7 +153,7 @@ void setutent(void)
{
assert(BSD_uf == NULL);
if ((BSD_uf = fopen(_PATH_UTMP, "r")) == NULL) {
- errmsg.LogError(NO_ERRCODE, "%s", _PATH_UTMP);
+ errmsg.LogError(0, NO_ERRCODE, "%s", _PATH_UTMP);
return;
}
}