Rev | Line | |
---|
[9] | 1 | #include "sysutil.h"
|
---|
| 2 | #include <string.h>
|
---|
| 3 |
|
---|
| 4 | /*=========================================================================*
|
---|
| 5 | * env_panic *
|
---|
| 6 | *=========================================================================*/
|
---|
| 7 | PUBLIC void env_panic(key)
|
---|
| 8 | char *key; /* environment variable whose value is bogus */
|
---|
| 9 | {
|
---|
| 10 | static char value[EP_BUF_SIZE] = "<unknown>";
|
---|
| 11 | int s;
|
---|
| 12 | if ((s=env_get_param(key, value, sizeof(value))) == 0) {
|
---|
| 13 | if (s != ESRCH) /* only error allowed */
|
---|
| 14 | printf("WARNING: get_mon_param() failed in env_panic(): %d\n", s);
|
---|
| 15 | }
|
---|
| 16 | printf("Bad environment setting: '%s = %s'\n", key, value);
|
---|
| 17 | panic("","", NO_NUM);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.