Typedefing an array of incomplete structs is non-standard C code.
Approved by: das (mentor)
This commit is contained in:
parent
c04518013a
commit
a867585b89
@ -37,11 +37,11 @@ struct intstr {
|
||||
};
|
||||
|
||||
typedef int (command_t)(int, char **);
|
||||
typedef struct cmd ctbl_t[];
|
||||
struct cmd {
|
||||
const char *name;
|
||||
command_t *handler;
|
||||
};
|
||||
typedef struct cmd ctbl_t[];
|
||||
|
||||
command_t rule_main, ruleset_main;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user