summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-05-27 10:32:50 +0000
committerjkh <jkh@FreeBSD.org>1999-05-27 10:32:50 +0000
commit4e040793c0e05bef154e78a09e4b935ec7211c08 (patch)
treecba908c43d1dc405a0355ca3366a996075be6f56 /usr.sbin/sysinstall/msg.c
parent5f3f513bc6580435bbbd98c35680c067ddc41886 (diff)
downloadFreeBSD-src-4e040793c0e05bef154e78a09e4b935ec7211c08.zip
FreeBSD-src-4e040793c0e05bef154e78a09e4b935ec7211c08.tar.gz
Do a clean-up pass on error/warning messages.
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index e61b767..a7116e9 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/sysinstall/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.46 1997/09/09 16:27:50 jkh Exp $
+ * $Id: msg.c,v 1.47 1997/09/20 02:48:48 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -217,6 +217,20 @@ msgNotify(char *fmt, ...)
dialog_msgbox(NULL, errstr, -1, -1, 0);
}
+/* Put up a message in a popup or notifier box, depending on NO_CONFIRM */
+void
+msgCNotify(char *fmt, ...)
+{
+ va_list args;
+
+ va_start(args, fmt);
+ if (variable_get(VAR_NO_CONFIRM))
+ msgNotify(fmt, args);
+ else
+ msgConfirm(fmt, args);
+ va_end(args);
+}
+
/* Put up a message in a popup yes/no box and return 1 for YES, 0 for NO */
int
msgYesNo(char *fmt, ...)
OpenPOWER on IntegriCloud