Skip to content

Commit 7e7e70b

Browse files
committed
server/netget.c: fix use of "#if DEBUG" when it is not defined [#266]
Signed-off-by: Jim Klimov <[email protected]>
1 parent 38a675c commit 7e7e70b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/netget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void get_type(nut_ctype_t *client, const char *upsname, const char *var)
140140
snprintf(buf, sizeof(buf), "TYPE %s %s", upsname, var);
141141

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

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

0 commit comments

Comments
 (0)