Use log_procname instead of log_procnames[eigrpd_process]. It should be
authorclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 10:51:35 +0000 (10:51 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 10:51:35 +0000 (10:51 +0000)
the same thing.

usr.sbin/eigrpd/log.c

index 4a9b115..1d7bca0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: log.c,v 1.8 2017/03/21 12:06:55 bluhm Exp $ */
+/*     $OpenBSD: log.c,v 1.9 2021/01/19 10:51:35 claudio Exp $ */
 
 /*
  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -146,15 +146,15 @@ void
 fatal(const char *emsg)
 {
        if (emsg == NULL)
-               logit(LOG_CRIT, "fatal in %s: %s", log_procnames[eigrpd_process],
+               logit(LOG_CRIT, "fatal in %s: %s", log_procname,
                    strerror(errno));
        else
                if (errno)
                        logit(LOG_CRIT, "fatal in %s: %s: %s",
-                           log_procnames[eigrpd_process], emsg, strerror(errno));
+                           log_procname, emsg, strerror(errno));
                else
                        logit(LOG_CRIT, "fatal in %s: %s",
-                           log_procnames[eigrpd_process], emsg);
+                           log_procname, emsg);
 
        exit(1);
 }