Revision 1064
Cleaned up code, removed all compiler warnings.
libsim.c | ||
---|---|---|
13 | 13 |
|
14 | 14 |
RobotShared* shared_state; |
15 | 15 |
|
16 |
void *tick(int sig)
|
|
16 |
void tick(int sig) |
|
17 | 17 |
{ |
18 | 18 |
if(raise(SIGTSTP)<0) |
19 | 19 |
printf("could not kill self!\n"); |
20 |
|
|
21 |
return NULL; |
|
22 | 20 |
} |
23 | 21 |
|
24 | 22 |
|
... | ... | |
36 | 34 |
} |
37 | 35 |
|
38 | 36 |
|
39 |
printf("hello. I am a robot w/ memory_id %s\n", getenv("memory_id")); |
|
37 |
//printf("hello. I am a robot w/ memory_id %s\n", getenv("memory_id"));
|
|
40 | 38 |
|
41 | 39 |
|
42 | 40 |
iv.it_interval.tv_sec = 0; |
Also available in: Unified diff