Date: Thu, 3 Jul 2025 12:01:09 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 467b037a8aab - main - pfctl: use __func__ rather than hardcoding the function name Message-ID: <202507031201.563C19Wu052007@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=467b037a8aab98083e4fec7b6ccce0f9a533bd2d commit 467b037a8aab98083e4fec7b6ccce0f9a533bd2d Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-06-27 15:05:00 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-07-03 07:16:14 +0000 pfctl: use __func__ rather than hardcoding the function name Obtained from: OpenBSD, kn <kn@openbsd.org>, e7f9714dfb Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index cb083bd09344..de3048b27a47 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1797,11 +1797,11 @@ host(const char *s, int opts) goto error; } if ((ps = malloc(strlen(s) - strlen(p) + 1)) == NULL) - err(1, "host: malloc"); + err(1, "%s: malloc", __func__); strlcpy(ps, s, strlen(s) - strlen(p) + 1); } else { if ((ps = strdup(s)) == NULL) - err(1, "host: strdup"); + err(1, "%s: strdup", __func__); } if ((h = host_ip(ps, mask)) == NULL &&
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507031201.563C19Wu052007>