summaryrefslogtreecommitdiff
path: root/src/daemontools-extras
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-06-08 09:59:01 +0000
committerLaurent Bercot <ska@appnovation.com>2022-06-08 09:59:01 +0000
commitff147a1493759c0662912564c0ecd26f59590322 (patch)
tree0d738aa9d0b1e5476b4fe18a2e935ce1cae730e5 /src/daemontools-extras
parent2a47de8defea86ae35ffb53e8c30667be940ac4e (diff)
downloads6-ff147a1493759c0662912564c0ecd26f59590322.tar.xz
Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/daemontools-extras')
-rw-r--r--src/daemontools-extras/lolsyslog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemontools-extras/lolsyslog.c b/src/daemontools-extras/lolsyslog.c
index a397dae..e62bdef 100644
--- a/src/daemontools-extras/lolsyslog.c
+++ b/src/daemontools-extras/lolsyslog.c
@@ -82,8 +82,9 @@ size_t lolsyslog_string (char *out, char const *in)
out = stpcpy(out, p->c_name ? p->c_name : "unknown") ;
*out++ = '.' ;
+ p = prioritynames ;
fp = LOG_PRI(fpr) ;
- for (p = prioritynames ; p->c_name ; p++) if (p->c_val == fp) break ;
+ for (; p->c_name ; p++) if (p->c_val == fp) break ;
out = stpcpy(out, p->c_name ? p->c_name : "unknown") ;
*out++ = ':' ; *out++ = ' ' ; *out++ = 0 ;
return i+2 ;