Skip to content

Commit a91262d

Browse files
committed
Fix parse function signature
1 parent 7d51d43 commit a91262d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/zone.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@ static int32_t check_options(const zone_options_t *options)
7575
#include "isadetection.h"
7676

7777
#if HAVE_HASWELL
78-
extern int32_t zone_haswell_parse(parser_t *, void *);
78+
extern int32_t zone_haswell_parse(parser_t *);
7979
#endif
8080

8181
#if HAVE_WESTMERE
82-
extern int32_t zone_westmere_parse(parser_t *, void *);
82+
extern int32_t zone_westmere_parse(parser_t *);
8383
#endif
8484

85-
extern int32_t zone_fallback_parse(parser_t *, void *);
85+
extern int32_t zone_fallback_parse(parser_t *);
8686

8787
typedef struct kernel kernel_t;
8888
struct kernel {
8989
const char *name;
9090
uint32_t instruction_set;
91-
int32_t (*parse)(parser_t *, void *);
91+
int32_t (*parse)(parser_t *);
9292
};
9393

9494
static const kernel_t kernels[] = {
@@ -136,7 +136,7 @@ static int32_t parse(parser_t *parser, void *user_data)
136136
kernel = select_kernel();
137137
assert(kernel);
138138
parser->user_data = user_data;
139-
return kernel->parse(parser, user_data);
139+
return kernel->parse(parser);
140140
}
141141

142142
diagnostic_push()

0 commit comments

Comments
 (0)