msg.c (74699) | msg.c (84745) |
---|---|
1#ifndef lint 2static const char rcsid[] = | 1#ifndef lint 2static const char rcsid[] = |
3 "$FreeBSD: head/usr.sbin/pkg_install/lib/msg.c 74699 2001-03-23 18:45:24Z sobomax $"; | 3 "$FreeBSD: head/usr.sbin/pkg_install/lib/msg.c 84745 2001-10-10 06:58:42Z sobomax $"; |
4#endif 5 6/* 7 * FreeBSD install - a package for the installation and maintainance 8 * of non-core utilities. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 25 */ 26 27#include "lib.h" 28#include <err.h> 29#include <paths.h> 30 31/* Die a relatively simple death */ 32void | 4#endif 5 6/* 7 * FreeBSD install - a package for the installation and maintainance 8 * of non-core utilities. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 25 */ 26 27#include "lib.h" 28#include <err.h> 29#include <paths.h> 30 31/* Die a relatively simple death */ 32void |
33upchuck(const char *err) | 33upchuck(const char *message) |
34{ 35 cleanup(0); | 34{ 35 cleanup(0); |
36 errx(1, "fatal error during execution: %s", err); | 36 errx(1, "fatal error during execution: %s", message); |
37} 38 39/* 40 * As a yes/no question, prompting from the varargs string and using 41 * default if user just hits return. 42 */ 43Boolean 44y_or_n(Boolean def, const char *msg, ...) --- 34 unchanged lines hidden --- | 37} 38 39/* 40 * As a yes/no question, prompting from the varargs string and using 41 * default if user just hits return. 42 */ 43Boolean 44y_or_n(Boolean def, const char *msg, ...) --- 34 unchanged lines hidden --- |