diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index d6e702bc992..20e801a4f53 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -634,8 +634,7 @@ static void * elf_note_procstat_groups(void *arg, size_t *sizep) { - return (procstat_sysctl(arg, KERN_PROC_GROUPS, - (int)sizeof(gid_t), sizep)); + return (procstat_sysctl(arg, KERN_PROC_GROUPS, sizeof(gid_t), sizep)); } static void *