122 |
static void |
static void |
123 |
corrupt_msg (int class, const char *format,...) |
corrupt_msg (int class, const char *format,...) |
124 |
{ |
{ |
125 |
char buf[1024]; |
struct error e; |
126 |
|
va_list args; |
|
{ |
|
|
va_list args; |
|
127 |
|
|
128 |
va_start (args, format); |
e.class = class; |
129 |
vsnprintf (buf, 1024, format, args); |
getl_location (&e.where.filename, &e.where.line_number); |
130 |
va_end (args); |
e.title = _("corrupt system file: "); |
|
} |
|
|
|
|
|
{ |
|
|
struct error e; |
|
131 |
|
|
132 |
e.class = class; |
va_start (args, format); |
133 |
getl_location (&e.where.filename, &e.where.line_number); |
err_vmsg (&e, format, args); |
134 |
e.title = _("corrupt system file: "); |
va_end (args); |
|
e.text = buf; |
|
|
|
|
|
err_vmsg (&e); |
|
|
} |
|
135 |
} |
} |
136 |
|
|
137 |
/* Closes a system file after we're done with it. */ |
/* Closes a system file after we're done with it. */ |