Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rump_halt use rumpuser_port.h
details: https://anonhg.NetBSD.org/src/rev/7d216e08e3bb
branches: trunk
changeset: 326000:7d216e08e3bb
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jan 15 16:53:32 2014 +0000
description:
use rumpuser_port.h
diffstat:
usr.bin/rump_halt/rump.halt.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r db08c66327df -r 7d216e08e3bb usr.bin/rump_halt/rump.halt.c
--- a/usr.bin/rump_halt/rump.halt.c Wed Jan 15 16:53:15 2014 +0000
+++ b/usr.bin/rump_halt/rump.halt.c Wed Jan 15 16:53:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.halt.c,v 1.3 2011/09/16 15:39:28 joerg Exp $ */
+/* $NetBSD: rump.halt.c,v 1.4 2014/01/15 16:53:32 pooka Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -25,9 +25,11 @@
* SUCH DAMAGE.
*/
+#include <rump/rumpuser_port.h>
+
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rump.halt.c,v 1.3 2011/09/16 15:39:28 joerg Exp $");
+__RCSID("$NetBSD: rump.halt.c,v 1.4 2014/01/15 16:53:32 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -45,6 +47,10 @@
#define ARGFLAGS "dhn"
+#ifndef PLATFORM_HAS_SETGETPROGNAME
+#define getprogname() "rump_halt"
+#endif
+
__dead static void
usage(void)
{
Home |
Main Index |
Thread Index |
Old Index