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