Module Name: src
Committed By: pooka
Date: Wed May 1 17:17:55 UTC 2013
Modified Files:
src/lib/librumpuser: rumpuser.c
Log Message:
avoid Wunused on !NetBSD
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/lib/librumpuser/rumpuser.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser.c
diff -u src/lib/librumpuser/rumpuser.c:1.48 src/lib/librumpuser/rumpuser.c:1.49
--- src/lib/librumpuser/rumpuser.c:1.48 Tue Apr 30 16:03:44 2013
+++ src/lib/librumpuser/rumpuser.c Wed May 1 17:17:54 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.c,v 1.48 2013/04/30 16:03:44 pooka Exp $ */
+/* $NetBSD: rumpuser.c,v 1.49 2013/05/01 17:17:54 pooka Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.48 2013/04/30 16:03:44 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.49 2013/05/01 17:17:54 pooka Exp $");
#endif /* !lint */
#include <sys/ioctl.h>
@@ -597,9 +597,11 @@ rumpuser_dprintf(const char *format, ...
int
rumpuser_kill(int64_t pid, int sig)
{
- int rv, error;
+ int rv;
#ifdef __NetBSD__
+ int error;
+
if (pid == RUMPUSER_PID_SELF) {
error = raise(sig);
} else {