mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Fix some static analysis issues
This commit is contained in:
parent
fb54604b31
commit
f147d3dde9
30 changed files with 375 additions and 266 deletions
|
@ -25,7 +25,7 @@
|
|||
#include "libc/sysv/consts/prot.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
open(argv[1], O_RDWR);
|
||||
Elf64_Ehdr *e = mmap(0, 64, PROT_READ | PROT_WRITE, MAP_SHARED, 3, 0);
|
||||
int fd = open(argv[1], O_RDWR);
|
||||
Elf64_Ehdr *e = mmap(0, 64, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
e->e_ident[EI_OSABI] = ELFOSABI_SYSV;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue