Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
headshog committed Jul 17, 2023
1 parent 9f22fb1 commit fdd2348
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sldns/rrdef.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,11 @@ sldns_get_rr_type_by_name(const char *name)

/* TYPEXX representation */
if (strlen(name) > 4 && strncasecmp(name, "TYPE", 4) == 0) {
unsigned int a = atoi(name + 4);
if (a > LDNS_RR_TYPE_LAST) {
return (enum sldns_enum_rr_type)0;
}
return a;
unsigned int a = atoi(name + 4);
if (a > LDNS_RR_TYPE_LAST) {
return (enum sldns_enum_rr_type)0;
}
return a;
}

/* Normal types */
Expand Down Expand Up @@ -744,12 +744,12 @@ sldns_get_rr_class_by_name(const char *name)

/* CLASSXX representation */
if (strlen(name) > 5 && strncasecmp(name, "CLASS", 5) == 0) {
unsigned int a = atoi(name + 5);
if (a > LDNS_RR_TYPE_LAST) {
return (enum sldns_enum_rr_type)0;
}
return a;
}
unsigned int a = atoi(name + 5);
if (a > LDNS_RR_TYPE_LAST) {
return (enum sldns_enum_rr_type)0;
}
return a;
}

/* Normal types */
lt = sldns_lookup_by_name(sldns_rr_classes, name);
Expand Down

0 comments on commit fdd2348

Please sign in to comment.