Date: Wed, 6 Apr 2022 23:46:26 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 3f6d3f0285f5 - main - alias_nbt: Move debug-only variable under #ifdef LIBALIAS_DEBUG. Message-ID: <202204062346.236NkQsS009244@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3f6d3f0285f505f315f4eee188a1dc152aa3381f commit 3f6d3f0285f505f315f4eee188a1dc152aa3381f Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-06 23:45:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-06 23:45:29 +0000 alias_nbt: Move debug-only variable under #ifdef LIBALIAS_DEBUG. --- sys/netinet/libalias/alias_nbt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/libalias/alias_nbt.c b/sys/netinet/libalias/alias_nbt.c index ab4bd818e1a5..82b6742f4b3b 100644 --- a/sys/netinet/libalias/alias_nbt.c +++ b/sys/netinet/libalias/alias_nbt.c @@ -251,7 +251,9 @@ static u_char * AliasHandleName(u_char *p, char *pmax) { u_char *s; +#ifdef LIBALIAS_DEBUG u_char c; +#endif int compress; /* Following length field */ @@ -283,8 +285,8 @@ AliasHandleName(u_char *p, char *pmax) #endif while (s < p) { if (compress == 1) { - c = (u_char) (((((*s & 0x0f) << 4) | (*(s + 1) & 0x0f)) - 0x11)); #ifdef LIBALIAS_DEBUG + c = (u_char) (((((*s & 0x0f) << 4) | (*(s + 1) & 0x0f)) - 0x11)); if (isprint(c)) printf("%c", c); else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204062346.236NkQsS009244>