aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-12-25 01:38:24 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-12-25 01:41:09 -0500
commitef76c921ed9dfef892202342bc4b9c31cc16a0c9 (patch)
treef7f343c332461bfd8c4a3b064fcc894ce19f6ed2
parent388c5580cbb032c9e5c3a9b2b578f0e0e27fc97b (diff)
no need to cast NULL to void *
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index fa6379a..518e544 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1883,7 +1883,7 @@ run(char *startup_cmd)
if (startup_pid < 0)
EBARF("startup: fork");
if (startup_pid == 0) {
- execl("/bin/sh", "/bin/sh", "-c", startup_cmd, (void *)NULL);
+ execl("/bin/sh", "/bin/sh", "-c", startup_cmd, NULL);
EBARF("startup: execl");
}
}