aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2021-11-15 18:34:27 +0000
committerBrooks Davis <brooks@FreeBSD.org>2021-11-15 18:34:27 +0000
commit8e4a3add99ca05c46bde826adcbea552d7a7d9e9 (patch)
tree30d6deba6f04765318328cea76899edc722c4942 /usr.bin/truss
parentf0da2a14670a34d1decfbc17800c4dc4e4ebc324 (diff)
downloadsrc-8e4a3add99ca05c46bde826adcbea552d7a7d9e9.tar.gz
src-8e4a3add99ca05c46bde826adcbea552d7a7d9e9.zip
struct kevent_freebsd11 -> struct freebsd11_kevent
Rename to match the naming of syscalls and allow 32 to be appended without making an ugly name like kevent_freebsd1132. While here, make the kevent changelist argument const. Reviewed by: kib
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 128ae624cf5f..67a370b808b5 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -2111,7 +2111,7 @@ print_arg(struct syscall_arg *sc, unsigned long *args, register_t *retval,
break;
}
case Kevent11: {
- struct kevent_freebsd11 *ke11;
+ struct freebsd11_kevent *ke11;
struct kevent ke;
int numevents = -1;
size_t bytes;
@@ -2123,7 +2123,7 @@ print_arg(struct syscall_arg *sc, unsigned long *args, register_t *retval,
numevents = retval[0];
if (numevents >= 0) {
- bytes = sizeof(struct kevent_freebsd11) * numevents;
+ bytes = sizeof(struct freebsd11_kevent) * numevents;
if ((ke11 = malloc(bytes)) == NULL)
err(1,
"Cannot malloc %zu bytes for kevent array",