Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser avoid Wunused on !NetBSD



details:   https://anonhg.NetBSD.org/src/rev/38da31c4177a
branches:  trunk
changeset: 786562:38da31c4177a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed May 01 17:17:54 2013 +0000

description:
avoid Wunused on !NetBSD

diffstat:

 lib/librumpuser/rumpuser.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 4d9d403e65ab -r 38da31c4177a lib/librumpuser/rumpuser.c
--- a/lib/librumpuser/rumpuser.c        Wed May 01 16:18:14 2013 +0000
+++ b/lib/librumpuser/rumpuser.c        Wed May 01 17:17:54 2013 +0000
@@ -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 @@
 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 {



Home | Main Index | Thread Index | Old Index