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/554bfd24b8f9
branches:  trunk
changeset: 792740:554bfd24b8f9
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 ca2162475bea -r 554bfd24b8f9 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