diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-16 20:33:26 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-16 20:33:26 +0000 |
commit | 92fa34275f0877cb407276efe0ecc07788905c99 (patch) | |
tree | e801c036113e3f31f899a9d5ec8bc4fd1922890c /sys/net/if_gif.c | |
parent | a61d2039dbda0d1b9c08355ba862aaa7ed3ad664 (diff) |
return error in ifc_destroy; ok deraadt, itojun, cedric, hshoexer
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 31b8727b13b..cce663f9a5f 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.30 2003/12/10 07:22:42 itojun Exp $ */ +/* $OpenBSD: if_gif.c,v 1.31 2003/12/16 20:33:25 markus Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -64,8 +64,8 @@ extern int ifqmaxlen; void gifattach(int); -int gif_clone_create(struct if_clone *, int); -void gif_clone_destroy(struct ifnet *); +int gif_clone_create(struct if_clone *, int); +int gif_clone_destroy(struct ifnet *); /* * gif global variable definitions @@ -120,7 +120,7 @@ gif_clone_create(ifc, unit) return (0); } -void +int gif_clone_destroy(ifp) struct ifnet *ifp; { @@ -143,6 +143,7 @@ gif_clone_destroy(ifp) free((caddr_t)sc->gif_pdst, M_IFADDR); sc->gif_pdst = NULL; free(sc, M_DEVBUF); + return (0); } void |