Changed the type of quotactl()'s 4th arg from char *' to
void *'
so that non-sloppy applications can call it without using disgusting casts to avoid warnings. The 4th arg is sort of varargs -- it must sometimes represent a filename, sometimes a struct pointer, and is sometimes unused. The arg type is still caddr_t in the kernel. Obtained from: mostly from NetBSD
This commit is contained in:
parent
901671c028
commit
abd022381d
@ -44,7 +44,7 @@
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <ufs/ufs/quota.h>
|
||||
.Ft int
|
||||
.Fn quotactl "const char *path" "int cmd" "int id" "char *addr"
|
||||
.Fn quotactl "const char *path" "int cmd" "int id" "void *addr"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn quotactl
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)quota.h 8.3 (Berkeley) 8/19/94
|
||||
* $Id: quota.h,v 1.10 1997/02/22 09:47:43 peter Exp $
|
||||
* $Id: quota.h,v 1.11 1997/07/13 15:43:54 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _UFS_UFS_QUOTA_H_
|
||||
@ -196,7 +196,7 @@ int ufs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
int quotactl __P((const char *, int, int, char *));
|
||||
int quotactl __P((const char *, int, int, void *));
|
||||
__END_DECLS
|
||||
|
||||
#endif /* KERNEL */
|
||||
|
Loading…
x
Reference in New Issue
Block a user