Deleted Added
full compact
msg.c (70005) msg.c (79304)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $FreeBSD: head/usr.sbin/sade/msg.c 70005 2000-12-14 02:49:02Z jkh $
7 * $FreeBSD: head/usr.sbin/sade/msg.c 79304 2001-07-05 09:51:09Z kris $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 319 unchanged lines hidden (view full) ---

335 dialog_msgbox(NULL, errstr, -1, -1, 0);
336 restorescr(w);
337}
338
339/* Simple versions of msgConfirm() and msgNotify() for calling from scripts */
340int
341msgSimpleConfirm(char *str)
342{
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 319 unchanged lines hidden (view full) ---

335 dialog_msgbox(NULL, errstr, -1, -1, 0);
336 restorescr(w);
337}
338
339/* Simple versions of msgConfirm() and msgNotify() for calling from scripts */
340int
341msgSimpleConfirm(char *str)
342{
343 msgConfirm(str);
343 msgConfirm("%s", str);
344 return DITEM_SUCCESS;
345}
346
347int
348msgSimpleNotify(char *str)
349{
344 return DITEM_SUCCESS;
345}
346
347int
348msgSimpleNotify(char *str)
349{
350 msgNotify(str);
350 msgNotify("%s", str);
351 return DITEM_SUCCESS;
352}
351 return DITEM_SUCCESS;
352}