Mercurial > hg > nnchat
changeset 216:3ccfe8902fd5
Use (void *) typecast for execlp() sentinel to avoid a warning under OpenBSD.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 21 Nov 2010 04:14:08 +0200 |
parents | 659b8229d015 |
children | 7ba4e371e9a6 |
files | nnchat.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Sun Nov 21 04:12:16 2010 +0200 +++ b/nnchat.c Sun Nov 21 04:14:08 2010 +0200 @@ -688,7 +688,7 @@ if ((pid = fork()) < 0) { printMsg("Could not create sub-process!\n"); } else if (pid == 0) { - execlp(setBrowser, setBrowser, "-remote", tmpBuf, NULL); + execlp(setBrowser, setBrowser, "-remote", tmpBuf, (void *)NULL); _exit(errno); }