# HG changeset patch # User Matti Hamalainen # Date 1477472355 -10800 # Node ID ffccc712409ad91013dbe9d73c35846d0bc55115 # Parent 6bbec928dfbb43e2be0d713cb801b10ee01b849d Fix build. diff -r 6bbec928dfbb -r ffccc712409a sidinfo.c --- 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)