Source-Changes-HG archive

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

[src/trunk]: src adapt to new rumpclient_init() signature



details:   https://anonhg.NetBSD.org/src/rev/5027375fe2a2
branches:  trunk
changeset: 758473:5027375fe2a2
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Nov 05 13:52:41 2010 +0000

description:
adapt to new rumpclient_init() signature

diffstat:

 sbin/ifconfig/ifconfig.c   |  10 ++++------
 sbin/route/route.c         |   9 ++++-----
 usr.sbin/envstat/envstat.c |   9 ++++-----
 3 files changed, 12 insertions(+), 16 deletions(-)

diffs (91 lines):

diff -r d9b1ee9b37cf -r 5027375fe2a2 sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Fri Nov 05 13:50:48 2010 +0000
+++ b/sbin/ifconfig/ifconfig.c  Fri Nov 05 13:52:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.221 2010/11/04 23:31:12 pooka Exp $     */
+/*     $NetBSD: ifconfig.c,v 1.222 2010/11/05 13:52:41 pooka Exp $     */
 
 /*-
  * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
  The Regents of the University of California.  All rights reserved.");
-__RCSID("$NetBSD: ifconfig.c,v 1.221 2010/11/04 23:31:12 pooka Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.222 2010/11/05 13:52:41 pooka Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -541,10 +541,8 @@
        const char *ifname;
 
 #ifdef RUMP_ACTION
-       int error;
-
-       if ((error = rumpclient_init()) != 0)
-               errx(1, "rump client init: %s", strerror(error));
+       if (rumpclient_init() == -1)
+               err(1, "rump client init");
 #endif
        memset(match, 0, sizeof(match));
 
diff -r d9b1ee9b37cf -r 5027375fe2a2 sbin/route/route.c
--- a/sbin/route/route.c        Fri Nov 05 13:50:48 2010 +0000
+++ b/sbin/route/route.c        Fri Nov 05 13:52:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.124 2010/11/04 23:38:18 pooka Exp $        */
+/*     $NetBSD: route.c,v 1.125 2010/11/05 13:52:41 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.124 2010/11/04 23:38:18 pooka Exp $");
+__RCSID("$NetBSD: route.c,v 1.125 2010/11/05 13:52:41 pooka Exp $");
 #endif
 #endif /* not lint */
 
@@ -163,9 +163,8 @@
        int ch;
 
 #ifdef RUMP_ACTION
-       int error;
-       if ((error = rumpclient_init()) != 0)
-               errx(1, "rump client init: %s", strerror(error));
+       if (rumpclient_init() == -1)
+               err(1, "rump client init");
 #endif
 
        if (argc < 2)
diff -r d9b1ee9b37cf -r 5027375fe2a2 usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c        Fri Nov 05 13:50:48 2010 +0000
+++ b/usr.sbin/envstat/envstat.c        Fri Nov 05 13:52:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.81 2010/11/05 13:42:37 pooka Exp $ */
+/* $NetBSD: envstat.c,v 1.82 2010/11/05 13:52:42 pooka Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.81 2010/11/05 13:42:37 pooka Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.82 2010/11/05 13:52:42 pooka Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -150,9 +150,8 @@
        FILE *cf;
 
 #ifdef RUMP_ACTION
-       int error;
-       if ((error = rumpclient_init()) != 0)
-               errx(1, "rumpclient init failed: %s", strerror(error));
+       if (rumpclient_init() == -1)
+               err(1, "rumpclient init failed");
 #endif
 
        setprogname(argv[0]);



Home | Main Index | Thread Index | Old Index