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:
John "Elwin" Edwards 2015-04-21 10:11:02 -04:00
parent 034d8d6484
commit 02cec53f85
3 changed files with 16 additions and 22 deletions

View file

@ -959,16 +959,6 @@ rs_read_coord(int inf, coord *c)
return(READSTAT);
}
struct delayed_action {
int d_type;
int (*d_func)();
union {
VOID *vp;
int i;
} d_arg;
int d_time;
};
rs_write_daemons(FILE *savef, struct delayed_action *d_list,int count)
{
int i = 0;