some more:
add a comment at some code which looks like nonsense but is a -fshort-enums fix (by bjh21)
This commit is contained in:
parent
0cfebeeb7a
commit
15dd275fb1
2
dist/dhcp/omapip/result.c
vendored
2
dist/dhcp/omapip/result.c
vendored
@ -119,7 +119,7 @@ static const char *text[ISC_R_NRESULTS] = {
|
||||
|
||||
const char *isc_result_totext (isc_result_t result)
|
||||
{
|
||||
int tmp;
|
||||
int tmp; /* XXX used to force a signed comparision below */
|
||||
|
||||
if ((tmp = result) >= ISC_R_SUCCESS && result < ISC_R_NRESULTS)
|
||||
return text [result];
|
||||
|
6
dist/dhcp/server/failover.c
vendored
6
dist/dhcp/server/failover.c
vendored
@ -43,7 +43,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: failover.c,v 1.5 2002/06/11 14:00:05 drochner Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: failover.c,v 1.6 2002/06/11 15:16:28 drochner Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@ -794,7 +794,7 @@ isc_result_t dhcp_failover_link_get_value (omapi_object_t *h,
|
||||
omapi_value_t **value)
|
||||
{
|
||||
dhcp_failover_link_t *link;
|
||||
int tmp;
|
||||
int tmp; /* XXX used to force a signed comparision below */
|
||||
|
||||
if (h -> type != omapi_type_protocol)
|
||||
return ISC_R_INVALIDARG;
|
||||
@ -847,7 +847,7 @@ isc_result_t dhcp_failover_link_stuff_values (omapi_object_t *c,
|
||||
{
|
||||
dhcp_failover_link_t *link;
|
||||
isc_result_t status;
|
||||
int tmp;
|
||||
int tmp; /* XXX used to force a signed comparision below */
|
||||
|
||||
if (l -> type != dhcp_type_failover_link)
|
||||
return ISC_R_INVALIDARG;
|
||||
|
Loading…
Reference in New Issue
Block a user