aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/autounmountd.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-09-14 11:20:58 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-09-14 11:20:58 +0000
commit275253770b5fa20590ddb84babe7ba48b2844712 (patch)
treebb3a8a379d797fc3a6ac305b2a5d883e3b6b60a6 /usr.sbin/autofs/autounmountd.c
parent8393643c270904980d614afede84c9278a3e296e (diff)
downloadsrc-275253770b5fa20590ddb84babe7ba48b2844712.tar.gz
src-275253770b5fa20590ddb84babe7ba48b2844712.zip
Use proper argument order for calloc(3).
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=305805
Diffstat (limited to 'usr.sbin/autofs/autounmountd.c')
-rw-r--r--usr.sbin/autofs/autounmountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/autofs/autounmountd.c b/usr.sbin/autofs/autounmountd.c
index e64736b1884b..3a13225aa80a 100644
--- a/usr.sbin/autofs/autounmountd.c
+++ b/usr.sbin/autofs/autounmountd.c
@@ -78,7 +78,7 @@ automounted_add(fsid_t fsid, const char *mountpoint)
{
struct automounted_fs *af;
- af = calloc(sizeof(*af), 1);
+ af = calloc(1, sizeof(*af));
if (af == NULL)
log_err(1, "calloc");
af->af_mount_time = time(NULL);