summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/ucspilogd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 23:16:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 23:16:36 +0000
commitbf6d072124a960d3b84ae39cd15c5aeca2e41c88 (patch)
treec082150f61e67d929b1baca2f5c6104fe959ccac /src/daemontools-extras/ucspilogd.c
parent81c7a02ec870ef3dba9f8b8f8dbecbd119e5ea47 (diff)
downloads6-bf6d072124a960d3b84ae39cd15c5aeca2e41c88.tar.xz
Types fix, first pass
Diffstat (limited to 'src/daemontools-extras/ucspilogd.c')
-rw-r--r--src/daemontools-extras/ucspilogd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/daemontools-extras/ucspilogd.c b/src/daemontools-extras/ucspilogd.c
index 9ad739d..1f338bd 100644
--- a/src/daemontools-extras/ucspilogd.c
+++ b/src/daemontools-extras/ucspilogd.c
@@ -6,6 +6,7 @@
#endif
#include <skalibs/nonposix.h>
+#include <sys/types.h>
#include <errno.h>
#include <stdlib.h>
#include <syslog.h>
@@ -88,9 +89,10 @@ static CODE const facilitynames[] =
#endif
-static unsigned int syslog_names (char const *line)
+static size_t syslog_names (char const *line)
{
- unsigned int fpr, i ;
+ size_t i ;
+ unsigned int fpr ;
int fp ;
CODE const *p = facilitynames ;
@@ -157,7 +159,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
}
for (;;)
{
- unsigned int pos = 0 ;
+ size_t pos = 0 ;
satmp.len = 0 ;
{
register int r = skagetlnsep(buffer_0f1, &satmp, "\n", 2) ;