a = lt->id;
} else {
i = atoi(value);
- if (i >= 0 && !isdigit((unsigned char)value[0]) == 0) {
+ if (i >= 0 && isdigit((unsigned char)value[0])) {
lt = ldns_lookup_by_id(ldns_opcodes, i);
if (lt) {
a = lt->id;
b = lt->id;
} else {
i = atoi(mvalue);
- if (i >= 0 && !isdigit((unsigned char)mvalue[0]) == 0) {
+ if (i >= 0 && isdigit((unsigned char)mvalue[0])) {
lt = ldns_lookup_by_id(ldns_opcodes, i);
if (lt) {
b = lt->id;
a = lt->id;
} else {
i = atoi(value);
- if (i >= 0 && !isdigit((unsigned char)value[0]) == 0) {
+ if (i >= 0 && isdigit((unsigned char)value[0])) {
lt = ldns_lookup_by_id(ldns_rcodes, i);
if (lt) {
a = lt->id;
b = lt->id;
} else {
i = atoi(mvalue);
-
- if (i >= 0 && !isdigit((unsigned char)mvalue[0]) == 0) {
+ if (i >= 0 && isdigit((unsigned char)mvalue[0])) {
lt = ldns_lookup_by_id(ldns_rcodes, i);
if (lt) {
b = lt->id;
full = true;
} else if (strncmp(argv[i], "-s", 3) == 0) {
if (i + 1 < argc) {
- if (!ldns_str2rdf_dname(&startpoint, argv[i + 1]) == LDNS_STATUS_OK) {
+ if (ldns_str2rdf_dname(&startpoint, argv[i + 1]) != LDNS_STATUS_OK) {
printf("Bad start point name: %s\n", argv[i + 1]);
exit(1);
}