Source-Changes-HG archive

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

[src/trunk]: src/sbin/route #ifdef variable correctly



details:   https://anonhg.NetBSD.org/src/rev/27c8d787a3e1
branches:  trunk
changeset: 758446:27c8d787a3e1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 04 23:38:18 2010 +0000

description:
#ifdef variable correctly

diffstat:

 sbin/route/route.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 478c0f6c7e48 -r 27c8d787a3e1 sbin/route/route.c
--- a/sbin/route/route.c        Thu Nov 04 23:37:27 2010 +0000
+++ b/sbin/route/route.c        Thu Nov 04 23:38:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.123 2010/11/04 23:37:27 pooka Exp $        */
+/*     $NetBSD: route.c,v 1.124 2010/11/04 23:38:18 pooka Exp $        */
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)route.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.123 2010/11/04 23:37:27 pooka Exp $");
+__RCSID("$NetBSD: route.c,v 1.124 2010/11/04 23:38:18 pooka Exp $");
 #endif
 #endif /* not lint */
 
@@ -160,9 +160,10 @@
 int
 main(int argc, char * const *argv)
 {
-       int ch, error;
+       int ch;
 
 #ifdef RUMP_ACTION
+       int error;
        if ((error = rumpclient_init()) != 0)
                errx(1, "rump client init: %s", strerror(error));
 #endif



Home | Main Index | Thread Index | Old Index