mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
quiet compiler warning about ambiguous 'else'
This commit is contained in:
parent
8c2ff0cdc0
commit
ff966df508
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: data.c,v 1.5 2000/01/31 14:38:01 tale Exp $ */
|
/* $Id: data.c,v 1.6 2000/01/31 18:52:43 gson Exp $ */
|
||||||
|
|
||||||
/* Principal Author: Ted Lemon */
|
/* Principal Author: Ted Lemon */
|
||||||
|
|
||||||
@ -164,11 +164,12 @@ omapi_data_strcmp(omapi_data_t *s1, const char *s2) {
|
|||||||
len = slen;
|
len = slen;
|
||||||
|
|
||||||
order = memcmp(s1->u.buffer.value, s2, len);
|
order = memcmp(s1->u.buffer.value, s2, len);
|
||||||
if (order == 0)
|
if (order == 0) {
|
||||||
if (s1->u.buffer.len > slen)
|
if (s1->u.buffer.len > slen)
|
||||||
order = 1;
|
order = 1;
|
||||||
else if (s1->u.buffer.len < slen)
|
else if (s1->u.buffer.len < slen)
|
||||||
order = -1;
|
order = -1;
|
||||||
|
}
|
||||||
|
|
||||||
return (order);
|
return (order);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user