Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig PR/43141: Tobias Nygren: Print an error on unk...
details: https://anonhg.NetBSD.org/src/rev/0cd19962c99d
branches: trunk
changeset: 778108:0cd19962c99d
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 17 02:25:08 2012 +0000
description:
PR/43141: Tobias Nygren: Print an error on unknown interfaces.
diffstat:
sbin/ifconfig/af_inetany.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d18ec56e6746 -r 0cd19962c99d sbin/ifconfig/af_inetany.c
--- a/sbin/ifconfig/af_inetany.c Sat Mar 17 02:13:44 2012 +0000
+++ b/sbin/ifconfig/af_inetany.c Sat Mar 17 02:25:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_inetany.c,v 1.14 2011/05/24 11:38:56 joerg Exp $ */
+/* $NetBSD: af_inetany.c,v 1.15 2012/03/17 02:25:08 christos Exp $ */
/*-
* Copyright (c) 2008 David Young. All rights reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_inetany.c,v 1.14 2011/05/24 11:38:56 joerg Exp $");
+__RCSID("$NetBSD: af_inetany.c,v 1.15 2012/03/17 02:25:08 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -81,7 +81,7 @@
err(EXIT_FAILURE, "%s: getsock", __func__);
if ((ifname = getifinfo(env, oenv, &flags)) == NULL)
- return;
+ err(EXIT_FAILURE, "%s: getifinfo", __func__);
strlcpy(param->name[0].buf, ifname, param->name[0].buflen);
strlcpy(param->name[1].buf, ifname, param->name[1].buflen);
Home |
Main Index |
Thread Index |
Old Index