diff options
| author | andvar <andvar@NetBSD.org> | 2023-05-13 11:48:19 +0000 |
|---|---|---|
| committer | andvar <andvar@NetBSD.org> | 2023-05-13 11:48:19 +0000 |
| commit | 076d8406521d7b0769f620a38a421770fdb7b60d (patch) | |
| tree | 5cdd5bba6bd9f62383b5584d22ac0718f423dc9a /usr.sbin | |
| parent | 87bba2880772d0c2f832ec3f982a2d72d4da9666 (diff) | |
change a typo in sizeof(struct queueue *) to sizeof(nqueue[0])
riastradh recommends using array[0] instead of pointer.
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/lpr/common_source/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index dae3df79fef..db9018b1776 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.43 2014/12/20 13:15:48 prlw1 Exp $ */ +/* $NetBSD: common.c,v 1.44 2023/05/13 11:48:19 andvar Exp $ */ /* * Copyright (c) 1983, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)common.c 8.5 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: common.c,v 1.43 2014/12/20 13:15:48 prlw1 Exp $"); +__RCSID("$NetBSD: common.c,v 1.44 2023/05/13 11:48:19 andvar Exp $"); #endif #endif /* not lint */ @@ -285,7 +285,7 @@ getq(struct queue **namelist[]) goto errdone; } (void)memset(&nqueue[arraysz], 0, - arraysz * sizeof(struct queueue *)); + arraysz * sizeof(nqueue[0])); queue = nqueue; arraysz *= 2; } |
