Skip to content

Commit 73df8e5

Browse files
committed
dedup error string; OK tb deraadt
1 parent 88f2559 commit 73df8e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sbin/quotacheck/quotacheck.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: quotacheck.c,v 1.43 2024/09/15 07:14:58 jsg Exp $ */
1+
/* $OpenBSD: quotacheck.c,v 1.44 2025/04/20 17:15:57 kn Exp $ */
22
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
33

44
/*
@@ -235,7 +235,7 @@ needchk(struct fstab *fs)
235235
strcmp(fs->fs_vfstype, "mfs"))
236236
return (NULL);
237237
if ((qnp = malloc(sizeof(*qnp))) == NULL)
238-
err(1, "%s", strerror(errno));
238+
err(1, NULL);
239239
qnp->flags = 0;
240240
if (gflag && hasquota(fs, GRPQUOTA, &qfnp)) {
241241
strlcpy(qnp->grpqfname, qfnp, sizeof qnp->grpqfname);
@@ -606,7 +606,7 @@ addid(u_int32_t id, int type, char *name)
606606
else
607607
len = 10;
608608
if ((fup = calloc(1, sizeof(*fup) + len)) == NULL)
609-
err(1, "%s", strerror(errno));
609+
err(1, NULL);
610610
fhp = &fuhead[type][id & (FUHASH - 1)];
611611
fup->fu_next = *fhp;
612612
*fhp = fup;

0 commit comments

Comments
 (0)