From 73df8e5b9b658928ec5b34188870de3ada00d9f1 Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 20 Apr 2025 17:15:57 +0000 Subject: [PATCH] dedup error string; OK tb deraadt --- sbin/quotacheck/quotacheck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 3fda8cf555e..f2423511b1d 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quotacheck.c,v 1.43 2024/09/15 07:14:58 jsg Exp $ */ +/* $OpenBSD: quotacheck.c,v 1.44 2025/04/20 17:15:57 kn Exp $ */ /* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */ /* @@ -235,7 +235,7 @@ needchk(struct fstab *fs) strcmp(fs->fs_vfstype, "mfs")) return (NULL); if ((qnp = malloc(sizeof(*qnp))) == NULL) - err(1, "%s", strerror(errno)); + err(1, NULL); qnp->flags = 0; if (gflag && hasquota(fs, GRPQUOTA, &qfnp)) { strlcpy(qnp->grpqfname, qfnp, sizeof qnp->grpqfname); @@ -606,7 +606,7 @@ addid(u_int32_t id, int type, char *name) else len = 10; if ((fup = calloc(1, sizeof(*fup) + len)) == NULL) - err(1, "%s", strerror(errno)); + err(1, NULL); fhp = &fuhead[type][id & (FUHASH - 1)]; fup->fu_next = *fhp; *fhp = fup;