Skip to content

Commit

Permalink
server/netget.c: fix use of "#if DEBUG" when it is not defined [#266]
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 23, 2024
1 parent 7e73ecc commit bc3a1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/netget.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static void get_type(nut_ctype_t *client, const char *upsname, const char *var)
snprintf(buf, sizeof(buf), "TYPE %s %s", upsname, var);

if (node->flags & ST_FLAG_IMMUTABLE) {
#if DEBUG
#if defined DEBUG && DEBUG
/* Properly exposing this needs also an update to
* docs/net-protocol.txt (promote the paragraph
* provided as a note currently) and to the NUT RFC
Expand Down Expand Up @@ -205,7 +205,7 @@ static void get_type(nut_ctype_t *client, const char *upsname, const char *var)
}
}

#if DEBUG
#if defined DEBUG && DEBUG
/* Need to figure out an "aux" value here (length of current
* string at least?) and propagate the flag into where netset
* would see it. Maybe this sanity-check should move into the
Expand Down

0 comments on commit bc3a1c0

Please sign in to comment.