Mercurial > hg > early-roguelike
comparison xrogue/daemon.c @ 236:7c1cb43f346e
XRogue: get rid of VOID as an alias for long.
Maybe some compilers in 1986 didn't handle void pointers well, but they
are no longer a concern.
author | John "Elwin" Edwards |
---|---|
date | Mon, 07 Mar 2016 20:44:01 -0500 |
parents | b67b99f6c92b |
children | e1cd27c5464f |
comparison
equal
deleted
inserted
replaced
235:2dcf10d45d5b | 236:7c1cb43f346e |
---|---|
89 * start_daemon: | 89 * start_daemon: |
90 * Start a daemon, takes a function. | 90 * Start a daemon, takes a function. |
91 */ | 91 */ |
92 | 92 |
93 void | 93 void |
94 start_daemon(void (*dfunc)(), VOID *arg, int type) | 94 start_daemon(void (*dfunc)(), void *arg, int type) |
95 { | 95 { |
96 reg struct delayed_action *dev; | 96 reg struct delayed_action *dev; |
97 | 97 |
98 dev = d_slot(); | 98 dev = d_slot(); |
99 if (dev != NULL) { | 99 if (dev != NULL) { |
162 * fuse: | 162 * fuse: |
163 * Start a fuse to go off in a certain number of turns | 163 * Start a fuse to go off in a certain number of turns |
164 */ | 164 */ |
165 | 165 |
166 void | 166 void |
167 fuse(void (*dfunc)(), VOID *arg, int time, int type) | 167 fuse(void (*dfunc)(), void *arg, int time, int type) |
168 { | 168 { |
169 reg struct delayed_action *wire; | 169 reg struct delayed_action *wire; |
170 | 170 |
171 wire = f_slot(); | 171 wire = f_slot(); |
172 if (wire != NULL) { | 172 if (wire != NULL) { |