git: ba33c288488d - main - truss: remove write-only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Jan 2022 18:04:47 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=ba33c288488d4543d1a140cd5c44b8b3c4c29915
commit ba33c288488d4543d1a140cd5c44b8b3c4c29915
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-01-12 08:20:51 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-12 18:04:41 +0000
truss: remove write-only variable
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33861
---
usr.bin/truss/syscalls.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 67a370b808b5..586b583c3209 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -1945,11 +1945,9 @@ print_arg(struct syscall_arg *sc, unsigned long *args, register_t *retval,
fputs(strsig2(args[sc->offset]), fp);
break;
case Sigset: {
- long sig;
sigset_t ss;
int i, first;
- sig = args[sc->offset];
if (get_struct(pid, args[sc->offset], (void *)&ss,
sizeof(ss)) == -1) {
print_pointer(fp, args[sc->offset]);