summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-03-05 09:28:33 +0000
committerbde <bde@FreeBSD.org>1999-03-05 09:28:33 +0000
commit801213cd08eae6e66a4b862813a82db6a997140f (patch)
tree1dade0b9d4aff4c45fff203a0c6b36c04f59c51d
parentf5c5ee7c748944f91d946429a694d8592e912801 (diff)
downloadFreeBSD-src-801213cd08eae6e66a4b862813a82db6a997140f.zip
FreeBSD-src-801213cd08eae6e66a4b862813a82db6a997140f.tar.gz
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
-rw-r--r--lib/libc/sys/quotactl.22
-rw-r--r--sys/ufs/ufs/quota.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2
index ac6d912..b14932e 100644
--- a/lib/libc/sys/quotactl.2
+++ b/lib/libc/sys/quotactl.2
@@ -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
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h
index 1204a55..1944e40 100644
--- a/sys/ufs/ufs/quota.h
+++ b/sys/ufs/ufs/quota.h
@@ -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 */
OpenPOWER on IntegriCloud