summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/union/union_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/miscfs/union/union_subr.c')
-rw-r--r--sys/miscfs/union/union_subr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c
index 77947d1..ea4f804 100644
--- a/sys/miscfs/union/union_subr.c
+++ b/sys/miscfs/union/union_subr.c
@@ -49,9 +49,7 @@
#include <sys/queue.h>
#include <miscfs/union/union.h>
-#ifdef DIAGNOSTIC
#include <sys/proc.h>
-#endif
/* must be power of two, otherwise change UNION_HASH() */
#define NHASH 32
@@ -71,6 +69,7 @@ union_init()
for (i = 0; i < NHASH; i++)
LIST_INIT(&unhead[i]);
bzero((caddr_t) unvplock, sizeof(unvplock));
+ return (0);
}
static int
@@ -223,10 +222,10 @@ union_allocvp(vpp, mp, undvp, dvp, cnp, uppervp, lowervp)
struct vnode *lowervp; /* may be null */
{
int error;
- struct union_node *un;
+ struct union_node *un = 0;
struct union_node **pp;
struct vnode *xlowervp = NULLVP;
- int hash;
+ int hash = 0;
int try;
if (uppervp == NULLVP && lowervp == NULLVP)
OpenPOWER on IntegriCloud