mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Favor siginfo_t over struct siginfo
This commit is contained in:
parent
c638eabfe0
commit
deaef81463
20 changed files with 37 additions and 39 deletions
|
@ -21,8 +21,7 @@
|
|||
#include "libc/dce.h"
|
||||
#include "libc/sysv/consts/sig.h"
|
||||
|
||||
privileged void __siginfo2cosmo(struct siginfo *si,
|
||||
const union siginfo_meta *m) {
|
||||
privileged void __siginfo2cosmo(siginfo_t *si, const union siginfo_meta *m) {
|
||||
void *si_addr;
|
||||
int32_t si_signo;
|
||||
int32_t si_errno;
|
||||
|
@ -93,7 +92,7 @@ privileged void __siginfo2cosmo(struct siginfo *si,
|
|||
}
|
||||
}
|
||||
|
||||
*si = (struct siginfo){0};
|
||||
*si = (siginfo_t){0};
|
||||
si->si_signo = si_signo;
|
||||
si->si_errno = si_errno;
|
||||
si->si_code = si_code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue