ext2sim: fixup prototypes for TxError() MainExit()
Correct return and argument types. Use of <stdarg.h> with modern compiler.
This commit is contained in:
parent
bb6e55efb1
commit
2f2fd85af0
|
|
@ -1,6 +1,7 @@
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
#include "utils/hash.h"
|
#include "utils/hash.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
|
@ -87,13 +88,18 @@ TxGetLine(
|
||||||
return (fgets(line, len, stdin));
|
return (fgets(line, len, stdin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
TxError(
|
TxError(
|
||||||
char *s)
|
const char *s, ...)
|
||||||
{
|
{
|
||||||
vfprintf(stdout, s, &a);
|
va_list ap;
|
||||||
|
va_start(ap, s);
|
||||||
|
vfprintf(stdout, s, ap);
|
||||||
|
va_end(ap);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
MainExit(
|
MainExit(
|
||||||
int code)
|
int code)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue