Mercurial > hg > sidinfo
diff sidinfo.c @ 125:ffccc712409a
Fix build.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Oct 2016 11:59:15 +0300 |
parents | a2c2c63311de |
children | c1462b7880e8 |
line wrap: on
line diff
--- a/sidinfo.c Wed Mar 09 15:11:28 2016 +0200 +++ b/sidinfo.c Wed Oct 26 11:59:15 2016 +0300 @@ -433,9 +433,8 @@ } -static void siPrintPSIDInfoLine(FILE *outFile, BOOL *shown, const int xindex, const char *xfmt, const char *xaltfmt, ...) +static void siPrintPSIDInfoLine(FILE *outFile, BOOL *shown, const PSFOption *opt, const char *xfmt, const char *xaltfmt, ...) { - const PSFOption *opt = &optPSOptions[xindex]; va_list ap; const char *fmt = optHexadecimal ? (xaltfmt != NULL ? xaltfmt : xfmt) : xfmt; @@ -450,7 +449,7 @@ } -#define PR(xfmt, xaltfmt, ...) siPrintPSIDInfoLine(outFile, shown, xindex, xfmt, xaltfmt, __VA_ARGS__ ) +#define PR(xfmt, xaltfmt, ...) siPrintPSIDInfoLine(outFile, shown, opt, xfmt, xaltfmt, __VA_ARGS__ ) static void siPrintPSIDInformationField(FILE *outFile, const char *filename, const PSIDHeader *psid, BOOL *shown, const PSFStackItem *item)