Fix uninitialized variable warnings.`
This commit is contained in:
parent
93af726cde
commit
82653d230d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_ieee1394subr.c,v 1.24 2003/10/03 20:56:11 itojun Exp $ */
|
||||
/* $NetBSD: if_ieee1394subr.c,v 1.25 2003/10/26 19:09:44 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.24 2003/10/03 20:56:11 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.25 2003/10/26 19:09:44 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "bpfilter.h"
|
||||
@ -424,7 +424,7 @@ ieee1394_reass(struct ifnet *ifp, struct mbuf *m0)
|
||||
struct ieee1394_fraghdr *ifh;
|
||||
struct ieee1394_unfraghdr *iuh;
|
||||
struct ieee1394_reassq *rq;
|
||||
struct ieee1394_reass_pkt *rp, *trp, *nrp;
|
||||
struct ieee1394_reass_pkt *rp, *trp, *nrp = NULL;
|
||||
int len;
|
||||
u_int16_t off, ftype, size, dgl;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_spppsubr.c,v 1.71 2003/10/03 10:29:05 oki Exp $ */
|
||||
/* $NetBSD: if_spppsubr.c,v 1.72 2003/10/26 19:09:44 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Synchronous PPP/Cisco link level subroutines.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.71 2003/10/03 10:29:05 oki Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.72 2003/10/26 19:09:44 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipx.h"
|
||||
@ -4757,15 +4757,14 @@ sppp_set_ip_addrs(struct sppp *sp, u_int32_t myaddr, u_int32_t hisaddr)
|
||||
{
|
||||
STDDCL;
|
||||
struct ifaddr *ifa;
|
||||
struct sockaddr_in *si;
|
||||
struct sockaddr_in *dest;
|
||||
struct sockaddr_in *si = NULL;
|
||||
struct sockaddr_in *dest = NULL; /* XXX: gcc */
|
||||
|
||||
/*
|
||||
* Pick the first AF_INET address from the list,
|
||||
* aliases don't make any sense on a p2p link anyway.
|
||||
*/
|
||||
|
||||
si = 0;
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
|
||||
{
|
||||
if (ifa->ifa_addr->sa_family == AF_INET)
|
||||
@ -4816,8 +4815,8 @@ sppp_clear_ip_addrs(struct sppp *sp)
|
||||
{
|
||||
struct ifnet *ifp = &sp->pp_if;
|
||||
struct ifaddr *ifa;
|
||||
struct sockaddr_in *si;
|
||||
struct sockaddr_in *dest;
|
||||
struct sockaddr_in *si = NULL;
|
||||
struct sockaddr_in *dest = NULL; /* XXX: gcc */
|
||||
|
||||
u_int32_t remote;
|
||||
if (sp->ipcp.flags & IPCP_HISADDR_DYN)
|
||||
@ -4830,7 +4829,6 @@ sppp_clear_ip_addrs(struct sppp *sp)
|
||||
* aliases don't make any sense on a p2p link anyway.
|
||||
*/
|
||||
|
||||
si = 0;
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
|
||||
{
|
||||
if (ifa->ifa_addr->sa_family == AF_INET)
|
||||
|
Loading…
Reference in New Issue
Block a user