xrogue: fix definition of struct delayed_action.
Arrays of struct delayed_action were declared before the definition. Also, daemon.c and state.c defined it differently. The state.c definition, in which d_arg is a union, is now used everywhere. This is the least bad option, but fuses and daemons are still a disheartening morass that undoubtedly shelters more bugs.
This commit is contained in:
parent
034d8d6484
commit
02cec53f85
3 changed files with 16 additions and 22 deletions
|
|
@ -927,6 +927,16 @@
|
|||
#define MAXDAEMONS 10
|
||||
#define MAXFUSES 20
|
||||
|
||||
struct delayed_action {
|
||||
int d_type;
|
||||
int (*d_func)();
|
||||
union {
|
||||
VOID *vp;
|
||||
int i;
|
||||
} d_arg;
|
||||
int d_time;
|
||||
};
|
||||
|
||||
extern struct delayed_action d_list[MAXDAEMONS];
|
||||
extern struct delayed_action f_list[MAXFUSES];
|
||||
extern int demoncnt; /* number of active daemons */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue