initialize error, cause gcc3 says so.

This commit is contained in:
christos 2006-12-10 23:12:37 +00:00
parent 3526467a3d
commit 5abf774808

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_gre.c,v 1.79 2006/12/09 06:32:58 dyoung Exp $ */
/* $NetBSD: if_gre.c,v 1.80 2006/12/10 23:12:37 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.79 2006/12/09 06:32:58 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.80 2006/12/10 23:12:37 christos Exp $");
#include "opt_gre.h"
#include "opt_inet.h"
@ -890,7 +890,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
int s;
struct sockaddr_in si;
struct sockaddr *sa = NULL;
int error;
int error = 0;
switch (cmd) {
case SIOCSIFFLAGS:
@ -908,7 +908,6 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
return (EPERM);
break;
default:
error = 0;
break;
}