artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c41b2
)
prevent warning:
author
kstailey
<kstailey@openbsd.org>
Wed, 15 Jan 1997 03:27:14 +0000
(
03:27
+0000)
committer
kstailey
<kstailey@openbsd.org>
Wed, 15 Jan 1997 03:27:14 +0000
(
03:27
+0000)
in_pcb.c:182: warning: `old' might be used uninitialized in this function
sys/netinet/in_pcb.c
patch
|
blob
|
history
diff --git
a/sys/netinet/in_pcb.c
b/sys/netinet/in_pcb.c
index
630a828
..
3a74cd5
100644
(file)
--- a/
sys/netinet/in_pcb.c
+++ b/
sys/netinet/in_pcb.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: in_pcb.c,v 1.1
2 1996/08/24 04:56:39 deraadt Exp $
*/
+/* $OpenBSD: in_pcb.c,v 1.1
3 1997/01/15 03:27:14 kstailey Exp $
*/
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@
-179,7
+179,7
@@
in_pcbbind(v, nam)
inp->inp_laddr = sin->sin_addr;
}
if (lport == 0) {
- u_int16_t first, last, old;
+ u_int16_t first, last, old
= 0
;
int count;
int loopcount = 0;