libc: simplify Waitmsg
This commit is contained in:
parent
5ca0ef085c
commit
40ccb89835
@ -594,7 +594,7 @@ struct Waitmsg
|
|||||||
{
|
{
|
||||||
pid_t pid; /* of loved one */
|
pid_t pid; /* of loved one */
|
||||||
uint32_t time[3]; /* of loved one & descendants */
|
uint32_t time[3]; /* of loved one & descendants */
|
||||||
char *msg;
|
char msg[];
|
||||||
} Waitmsg;
|
} Waitmsg;
|
||||||
|
|
||||||
extern int jehanne_access(const char*, int);
|
extern int jehanne_access(const char*, int);
|
||||||
|
@ -34,7 +34,6 @@ jehanne_wait(void)
|
|||||||
w->time[0] = jehanne_atoi(fld[1]);
|
w->time[0] = jehanne_atoi(fld[1]);
|
||||||
w->time[1] = jehanne_atoi(fld[2]);
|
w->time[1] = jehanne_atoi(fld[2]);
|
||||||
w->time[2] = jehanne_atoi(fld[3]);
|
w->time[2] = jehanne_atoi(fld[3]);
|
||||||
w->msg = (char*)&w[1];
|
|
||||||
jehanne_memmove(w->msg, fld[4], l);
|
jehanne_memmove(w->msg, fld[4], l);
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user