Work around gcc 2.95.3's inability to detect that "ret" is initialized.

Will be documented in doc/HACKS, and should be looked at again when
gcc 3.3.2 for vax is ready.
This commit is contained in:
he 2003-11-06 00:25:50 +00:00
parent 00ea35b3b3
commit 505125808c
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ni.c,v 1.21 2003/04/01 01:58:14 thorpej Exp $ */
/* $NetBSD: if_ni.c,v 1.22 2003/11/06 00:25:50 he Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.21 2003/04/01 01:58:14 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.22 2003/11/06 00:25:50 he Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -99,7 +99,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.21 2003/04/01 01:58:14 thorpej Exp $");
*/
#define NRETRIES 100
#define INSQTI(e, h) ({ \
int ret, i; \
int ret = 0, i; \
for (i = 0; i < NRETRIES; i++) { \
if ((ret = insqti(e, h)) != ILCK_FAILED) \
break; \
@ -109,7 +109,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.21 2003/04/01 01:58:14 thorpej Exp $");
ret; \
})
#define REMQHI(h) ({ \
int i;void *ret; \
int i; void *ret = NULL; \
for (i = 0; i < NRETRIES; i++) { \
if ((ret = remqhi(h)) != (void *)ILCK_FAILED) \
break; \