summaryrefslogtreecommitdiff
path: root/usr.sbin/user/defs.h
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
commit87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch)
tree9e44c0b5a073ee17b9d7d3da181c696f012c6248 /usr.sbin/user/defs.h
parent941ec3d1051d178a11f6baa72a3d520413033f2e (diff)
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'usr.sbin/user/defs.h')
-rw-r--r--usr.sbin/user/defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/user/defs.h b/usr.sbin/user/defs.h
index bcebad28a4d..2d3ca7dc17b 100644
--- a/usr.sbin/user/defs.h
+++ b/usr.sbin/user/defs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: defs.h,v 1.2 2000/04/24 22:31:29 jakob Exp $ */
+/* $OpenBSD: defs.h,v 1.3 2002/08/12 00:42:56 aaron Exp $ */
/* $NetBSD: defs.h,v 1.5 1999/12/24 09:08:49 agc Exp $ */
/*
@@ -35,7 +35,7 @@
#define DEFS_H_
#define NEWARRAY(type,ptr,size,action) do { \
- if ((ptr = (type *) calloc(sizeof(type), size)) == (type *) NULL) { \
+ if ((ptr = (type *) calloc(size, sizeof(type))) == (type *) NULL) { \
warn("can't allocate %ld bytes", (long)(size * sizeof(type))); \
action; \
} \