diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-02-15 22:48:25 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-02-15 22:48:25 +0000 |
commit | 36469a7a4ca39f1b063d91255ec320552ba036a8 (patch) | |
tree | b0b41247c2ff77fbd24594d32b3e30f72e0ed45a /usr.bin/gcore/elfcore.c | |
parent | f603a8a33885717d6af640cdc49acfdc27381a10 (diff) | |
download | FreeBSD-src-36469a7a4ca39f1b063d91255ec320552ba036a8.zip FreeBSD-src-36469a7a4ca39f1b063d91255ec320552ba036a8.tar.gz |
Fix some WARNS:
1) Remove some unused variables.
2) Mark some things aas static or __unused.
3) Cast to make sure we're comparing the same types.
Diffstat (limited to 'usr.bin/gcore/elfcore.c')
-rw-r--r-- | usr.bin/gcore/elfcore.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index bdfd9bb..c6a161d 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -80,11 +80,10 @@ static void readhdrinfo(pid_t, prstatus_t *, prfpregset_t *, prpsinfo_t *); static vm_map_entry_t readmap(pid_t); static int -elf_ident(int efd, pid_t pid, char *binfile) +elf_ident(int efd, pid_t pid __unused, char *binfile __unused) { Elf_Ehdr hdr; int cnt; - uid_t uid; cnt = read(efd, &hdr, sizeof(hdr)); if (cnt != sizeof(hdr)) @@ -97,8 +96,8 @@ elf_ident(int efd, pid_t pid, char *binfile) /* * Write an ELF coredump for the given pid to the given fd. */ -void -elf_coredump(int efd, int fd, pid_t pid) +static void +elf_coredump(int efd __unused, int fd, pid_t pid) { vm_map_entry_t map; struct sseg_closure seginfo; |