sscall

UDP based voice chat
git clone git://git.2f30.org/sscall
Log | Files | Refs | README | LICENSE

commit 1ace4b3e373e10217bfd8cff2d582133a1bce03e
parent a752450545305bad80a9f4b8843ae0f7cb0aefbd
Author: sin <sin@2f30.org>
Date:   Tue,  5 Jun 2012 19:02:37 +0100

sscall: Print descriptive error when pthread_create fails


Diffstat:
Msscall.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sscall.c b/sscall.c @@ -402,7 +402,7 @@ main(int argc, char *argv[]) ret = pthread_create(&output_pcm_thread, NULL, output_pcm, &output_pcm_state); if (ret < 0) - errx(1, "pthread_creapte failed: %d", ret); + err(1, "pthread_create"); inp_pcm_priv.fd = recfd; inp_pcm_priv.sockfd = cli_sockfd; @@ -413,7 +413,7 @@ main(int argc, char *argv[]) ret = pthread_create(&input_pcm_thread, NULL, input_pcm, &input_pcm_state); if (ret < 0) - errx(1, "pthread_create failed: %d", ret); + err(1, "pthread_create"); if (signal(SIGINT, sig_handler) == SIG_ERR) err(1, "signal");