From 319cc90118ef56293ae5b25d3f3a474890192506 Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 13 Jun 1997 14:29:50 +0000 Subject: [PATCH] -Wall fixes --- sys/lib/libsa/cd9660.c | 4 ++-- sys/lib/libsa/netif.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/lib/libsa/cd9660.c b/sys/lib/libsa/cd9660.c index 446db6f13a65..5b1820ef00c4 100644 --- a/sys/lib/libsa/cd9660.c +++ b/sys/lib/libsa/cd9660.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd9660.c,v 1.3 1997/01/24 00:53:40 cgd Exp $ */ +/* $NetBSD: cd9660.c,v 1.4 1997/06/13 14:29:50 drochner Exp $ */ /* * Copyright (C) 1996 Wolfgang Solfrank. @@ -138,7 +138,7 @@ cd9660_open(path, f) daddr_t bno; int parent, ent; struct ptable_ent *pp; - struct iso_directory_record *dp; + struct iso_directory_record *dp = 0; int rc; /* First find the volume descriptor */ diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c index b3d154a92d90..cfcb6d5a6268 100644 --- a/sys/lib/libsa/netif.c +++ b/sys/lib/libsa/netif.c @@ -1,4 +1,4 @@ -/* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */ +/* $NetBSD: netif.c,v 1.8 1997/06/13 14:29:51 drochner Exp $ */ /* * Copyright (c) 1993 Adam Glass @@ -226,7 +226,9 @@ netif_get(desc, pkt, len, timo) size_t len; time_t timo; { +#ifdef NETIF_DEBUG struct netif *nif = desc->io_netif; +#endif struct netif_driver *drv = desc->io_netif->nif_driver; ssize_t rv; @@ -254,7 +256,9 @@ netif_put(desc, pkt, len) void *pkt; size_t len; { +#ifdef NETIF_DEBUG struct netif *nif = desc->io_netif; +#endif struct netif_driver *drv = desc->io_netif->nif_driver; ssize_t rv;