mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
alias_nbt: Move debug-only variable under #ifdef LIBALIAS_DEBUG.
This commit is contained in:
parent
89293939de
commit
3f6d3f0285
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue