summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-02-23 09:46:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-02-23 09:46:01 +0000
commit56e02ff74bce96e3c710247f4f11d66f34e7f28b (patch)
tree8e24b6d96ec353112a32c9127a56c9a5ba258041 /src
parentebb408e5adca052b62d453c31326437740a64f64 (diff)
downloads6-56e02ff74bce96e3c710247f4f11d66f34e7f28b.tar.xz
Cosmetic fixes (remove useless headers, add a const)
Diffstat (limited to 'src')
-rw-r--r--src/daemontools-extras/ucspilogd.c6
-rw-r--r--src/libs6/s6-ftrigrd.c1
2 files changed, 3 insertions, 4 deletions
diff --git a/src/daemontools-extras/ucspilogd.c b/src/daemontools-extras/ucspilogd.c
index ed1c1a9..9ad739d 100644
--- a/src/daemontools-extras/ucspilogd.c
+++ b/src/daemontools-extras/ucspilogd.c
@@ -41,7 +41,7 @@ struct CODE_s
unsigned int c_val ;
} ;
-static const CODE prioritynames[] =
+static CODE const prioritynames[] =
{
{ "emerg", LOG_EMERG },
{ "alert", LOG_ALERT },
@@ -54,7 +54,7 @@ static const CODE prioritynames[] =
{ 0, -1 }
} ;
-static const CODE facilitynames[] =
+static CODE const facilitynames[] =
{
{ "kern", LOG_KERN },
{ "user", LOG_USER },
@@ -92,7 +92,7 @@ static unsigned int syslog_names (char const *line)
{
unsigned int fpr, i ;
int fp ;
- CODE *p = facilitynames ;
+ CODE const *p = facilitynames ;
if (line[0] != '<') return 0 ;
i = uint_scan(line+1, &fpr) ;
diff --git a/src/libs6/s6-ftrigrd.c b/src/libs6/s6-ftrigrd.c
index e0bc704..b4c4c86 100644
--- a/src/libs6/s6-ftrigrd.c
+++ b/src/libs6/s6-ftrigrd.c
@@ -11,7 +11,6 @@
#include <skalibs/strerr2.h>
#include <skalibs/buffer.h>
#include <skalibs/stralloc.h>
-#include <skalibs/bufalloc.h>
#include <skalibs/sig.h>
#include <skalibs/tai.h>
#include <skalibs/djbunix.h>