diff options
author | cem <cem@FreeBSD.org> | 2016-04-26 19:57:35 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-04-26 19:57:35 +0000 |
commit | 973e9835356274e0b1048152e1e59d363a00bcc9 (patch) | |
tree | 5e2497f4308883a70696069012a3d15db8658415 /sys/compat/linux/linux_mib.c | |
parent | fb3f38bb0debbc390330daf9b681d6905ed5ce18 (diff) | |
download | FreeBSD-src-973e9835356274e0b1048152e1e59d363a00bcc9.zip FreeBSD-src-973e9835356274e0b1048152e1e59d363a00bcc9.tar.gz |
osd(9): Change array pointer to array pointer type from void*
This is a minor follow-up to r297422, prompted by a Coverity warning. (It's
not a real defect, just a code smell.) OSD slot array reservations are an
array of pointers (void **) but were cast to void* and back unnecessarily.
Keep the correct type from reservation to use.
osd.9 is updated to match, along with a few trivial igor fixes.
Reported by: Coverity
CID: 1353811
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/compat/linux/linux_mib.c')
-rw-r--r-- | sys/compat/linux/linux_mib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c index 3b102c9..7c9235c 100644 --- a/sys/compat/linux/linux_mib.c +++ b/sys/compat/linux/linux_mib.c @@ -192,7 +192,7 @@ linux_alloc_prison(struct prison *pr, struct linux_prison **lprp) { struct prison *ppr; struct linux_prison *lpr, *nlpr; - void *rsv; + void **rsv; /* If this prison already has Linux info, return that. */ lpr = linux_find_prison(pr, &ppr); |