diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-07-02 22:36:14 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-07-02 22:36:14 +0000 |
commit | 7050843886487f190e228c55af1091e5a0999d25 (patch) | |
tree | c7cd6e48b443088758dea08b3e6465bc4c46b4d9 /usr.sbin/sade | |
parent | fc9961b5ddcfa4ebacfb044c9b65c3edcbe7eb9b (diff) | |
download | src-7050843886487f190e228c55af1091e5a0999d25.tar.gz src-7050843886487f190e228c55af1091e5a0999d25.zip |
Eliminate some varargs abuse.
Notes
Notes:
svn path=/head/; revision=48482
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/msg.c | 16 | ||||
-rw-r--r-- | usr.sbin/sade/sade.h | 3 |
2 files changed, 2 insertions, 17 deletions
diff --git a/usr.sbin/sade/msg.c b/usr.sbin/sade/msg.c index a7116e9318a3..7ee6d82cbd56 100644 --- a/usr.sbin/sade/msg.c +++ b/usr.sbin/sade/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.47 1997/09/20 02:48:48 jkh Exp $ + * $Id: msg.c,v 1.48 1999/05/27 10:32:48 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -217,20 +217,6 @@ 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, ...) diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index c2ad351811a7..4816712530aa 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: sysinstall.h,v 1.165 1999/05/15 14:34:22 jkh Exp $ + * $Id: sysinstall.h,v 1.166 1999/05/27 10:32:50 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -645,7 +645,6 @@ extern void msgError(char *fmt, ...); extern void msgFatal(char *fmt, ...); extern void msgConfirm(char *fmt, ...); extern void msgNotify(char *fmt, ...); -extern void msgCNotify(char *fmt, ...); extern void msgWeHaveOutput(char *fmt, ...); extern int msgYesNo(char *fmt, ...); extern char *msgGetInput(char *buf, char *fmt, ...); |