according to the manual, the last argument of quotactl(2) is a void *,

not a caddr_t.
This commit is contained in:
christos 2006-10-17 15:06:18 +00:00
parent 3b347a3429
commit 152eb5a9c3
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.159 2006/09/01 20:58:18 matt Exp $
$NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -298,7 +298,7 @@
146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg
147 STD { int sys_setsid(void); }
148 STD { int sys_quotactl(const char *path, int cmd, \
int uid, caddr_t arg); }
int uid, void *arg); }
149 COMPAT_43 { int sys_quota(void); } oquota
150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \
int *alen); } ogetsockname

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_syscalls.c,v 1.271 2006/10/12 01:32:19 christos Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.272 2006/10/17 15:06:18 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.271 2006/10/12 01:32:19 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.272 2006/10/17 15:06:18 christos Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_43.h"
@ -719,7 +719,7 @@ sys_quotactl(struct lwp *l, void *v, register_t *retval __unused)
syscallarg(const char *) path;
syscallarg(int) cmd;
syscallarg(int) uid;
syscallarg(caddr_t) arg;
syscallarg(void *) arg;
} */ *uap = v;
struct mount *mp;
int error;