Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/pkill Cosmetic tweak. No functional change.
details: https://anonhg.NetBSD.org/src/rev/7acbfc81890e
branches: trunk
changeset: 368285:7acbfc81890e
user: ad <ad%NetBSD.org@localhost>
date: Sat Jul 02 20:50:26 2022 +0000
description:
Cosmetic tweak. No functional change.
diffstat:
usr.bin/pkill/pkill.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r d8d7cbab6a1b -r 7acbfc81890e usr.bin/pkill/pkill.c
--- a/usr.bin/pkill/pkill.c Sat Jul 02 16:30:13 2022 +0000
+++ b/usr.bin/pkill/pkill.c Sat Jul 02 20:50:26 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: pkill.c,v 1.31 2017/02/21 13:09:56 kre Exp $ */
+/* $NetBSD: pkill.c,v 1.32 2022/07/02 20:50:26 ad Exp $ */
/*-
- * Copyright (c) 2002 The NetBSD Foundation, Inc.
+ * Copyright (c) 2002, 2022 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pkill.c,v 1.31 2017/02/21 13:09:56 kre Exp $");
+__RCSID("$NetBSD: pkill.c,v 1.32 2022/07/02 20:50:26 ad Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -266,7 +266,7 @@
* Allocate memory which will be used to keep track of the
* selection.
*/
- if ((selected = calloc((size_t)1, (size_t)nproc)) == NULL)
+ if ((selected = calloc(sizeof(*selected), (size_t)nproc)) == NULL)
err(STATUS_ERROR, "Cannot allocate memory for %d processes",
nproc);
Home |
Main Index |
Thread Index |
Old Index