Add initialization of local variable to appease -Wuninitialized.
Marked with XXXGCC for arm and sparc64 compilers (found while building for those). Reviewed by lukem.
This commit is contained in:
parent
9cafbe15bc
commit
ab70040846
|
@ -43,7 +43,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: ddns.c,v 1.5 2005/06/05 19:08:28 chs Exp $ Copyright (c) 2000-2002 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: ddns.c,v 1.6 2005/06/10 23:48:24 he Exp $ Copyright (c) 2000-2002 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
|
@ -242,6 +242,8 @@ int ddns_updates (struct packet *packet,
|
|||
struct buffer *bp = (struct buffer *)0;
|
||||
int ignorep = 0;
|
||||
|
||||
s1 = 0; /* XXXGCC -Wuninitialized [arm / sparc64] */
|
||||
|
||||
if (ddns_update_style != 2)
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: dhcp.c,v 1.7 2005/06/05 19:08:28 chs Exp $ Copyright (c) 1995-2002 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: dhcp.c,v 1.8 2005/06/10 23:48:24 he Exp $ Copyright (c) 1995-2002 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
|
@ -1483,6 +1483,8 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp)
|
|||
int s1;
|
||||
int ignorep;
|
||||
|
||||
s1 = 0; /* XXXGCC -Wuninitialized [arm / sparc64] */
|
||||
|
||||
/* If we're already acking this lease, don't do it again. */
|
||||
if (lease -> state)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue