X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=lib%2Fradio.c;h=8db3d384d9a7d4c4acdca8a9201b5d98567b31e6;hp=d96137e46df3d4b1f2a28999f1cefada8c22c2d8;hb=16204dfc7715783c2ebdfb55fc44fb9344613a76;hpb=17638f5bff2fddb825562f9242a364674aa5fb94 diff --git a/lib/radio.c b/lib/radio.c index d96137e..8db3d38 100644 --- a/lib/radio.c +++ b/lib/radio.c @@ -108,7 +108,7 @@ void power() varbinds[1].type = NULL_VALUE; print_help(WAIT_RET); - if (snmp(varbinds, 2, GET) <= 0) { + if (snmp(varbinds, 2, GET) < 2) { print_helperr(ERR_RET); goto exit; }