adapt to new rumpclient_init() signature

This commit is contained in:
pooka 2010-11-05 13:52:41 +00:00
parent 83463bddd0
commit 7d1c54af24
3 changed files with 12 additions and 16 deletions

View File

@ -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 @@ main(int argc, char **argv)
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));

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\
#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 @@ main(int argc, char * const *argv)
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)

View File

@ -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 @@ int main(int argc, char **argv)
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]);