summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'release/sysinstall/msg.c')
-rw-r--r--release/sysinstall/msg.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/release/sysinstall/msg.c b/release/sysinstall/msg.c
index e61b767..a7116e9 100644
--- a/release/sysinstall/msg.c
+++ b/release/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