~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get semantics of invertable options, and of cancelling, right.
[adns]
/
client
/
adh-opts.c
diff --git
a/client/adh-opts.c
b/client/adh-opts.c
index
92a3c0b
..
ac1ad69
100644
(file)
--- a/
client/adh-opts.c
+++ b/
client/adh-opts.c
@@
-309,7
+309,7
@@
void opt_do(const struct optioninfo *oip, const char *arg, int invert) {
switch (oip->type) {
case ot_flag:
assert(!arg);
- *oip->storep=
invert ? !oip->value : oip->value
;
+ *oip->storep=
!invert
;
return;
case ot_value:
assert(!arg);