Mercurial > hg > early-roguelike
comparison rogue4/daemon.c @ 107:f2951c4e28d9
Rename daemon() to start_daemon().
daemon() conflicted with the standard library function, which is
included by default on OS X.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 07 Sep 2013 08:08:00 -0400 |
| parents | 9535a08ddc39 |
| children | 1b73a8641b37 |
comparison
equal
deleted
inserted
replaced
| 106:c191a735f811 | 107:f2951c4e28d9 |
|---|---|
| 59 return dev; | 59 return dev; |
| 60 return NULL; | 60 return NULL; |
| 61 } | 61 } |
| 62 | 62 |
| 63 /* | 63 /* |
| 64 * daemon: | 64 * start_daemon: |
| 65 * Start a daemon, takes a function. | 65 * Start a daemon, takes a function. |
| 66 */ | 66 */ |
| 67 daemon(func, arg, type) | 67 start_daemon(func, arg, type) |
| 68 int (*func)(), arg, type; | 68 int (*func)(), arg, type; |
| 69 { | 69 { |
| 70 register struct delayed_action *dev; | 70 register struct delayed_action *dev; |
| 71 | 71 |
| 72 dev = d_slot(); | 72 dev = d_slot(); |
