Module Name: src Committed By: christos Date: Sat Jan 12 19:09:25 UTC 2019
Modified Files: src/usr.sbin/rtadvd: rtadvd.c Log Message: adjust to new expandm. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/usr.sbin/rtadvd/rtadvd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/rtadvd/rtadvd.c diff -u src/usr.sbin/rtadvd/rtadvd.c:1.67 src/usr.sbin/rtadvd/rtadvd.c:1.68 --- src/usr.sbin/rtadvd/rtadvd.c:1.67 Fri Jan 11 15:41:53 2019 +++ src/usr.sbin/rtadvd/rtadvd.c Sat Jan 12 14:09:25 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: rtadvd.c,v 1.67 2019/01/11 20:41:53 christos Exp $ */ +/* $NetBSD: rtadvd.c,v 1.68 2019/01/12 19:09:25 christos Exp $ */ /* $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $ */ /* @@ -1856,8 +1856,7 @@ logit(int level, const char *fmt, ...) return; } - vfprintf(stderr, buf = expandm(fmt, "\n"), ap); - if (buf != fmt) - free(buf); + vfprintf(stderr, expandm(fmt, "\n", &buf), ap); + free(buf); va_end(ap); }