Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: fix sentinel f...
details: https://anonhg.NetBSD.org/src/rev/6f29a7c2cdb2
branches: trunk
changeset: 951948:6f29a7c2cdb2
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Feb 08 19:04:37 2021 +0000
description:
tests/libcurses: fix sentinel for execl
For systems where NULL is defined as a simple 0 or 0L.
diffstat:
tests/lib/libcurses/director/director.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fc5ebd9b0e14 -r 6f29a7c2cdb2 tests/lib/libcurses/director/director.c
--- a/tests/lib/libcurses/director/director.c Mon Feb 08 19:00:22 2021 +0000
+++ b/tests/lib/libcurses/director/director.c Mon Feb 08 19:04:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: director.c,v 1.15 2021/02/08 19:00:22 rillig Exp $ */
+/* $NetBSD: director.c,v 1.16 2021/02/08 19:04:37 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -273,7 +273,7 @@
if (asprintf(&arg4, "%d", slvpipe[1]) < 0)
err(1, "arg4 conversion failed");
- if (execl(slave, slave, arg1, arg2, arg3, arg4, NULL) < 0)
+ if (execl(slave, slave, arg1, arg2, arg3, arg4, (char *)0) < 0)
err(1, "Exec of slave %s failed", slave);
/* NOT REACHED */
Home |
Main Index |
Thread Index |
Old Index