Mercurial > hg > nnchat
diff nnchat.c @ 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 | c40329e95445 |
children | 7ba4e371e9a6 |
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); }