sscall

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

commit 22d7dcc55cdfbd225998752c9db88609139409df
parent 712028832a7b17ca1dad80cdfc0990f30e472e7e
Author: sin <sin@2f30.org>
Date:   Mon,  4 Jun 2012 14:19:11 +0100

sscall: Replace perror() with warn()


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

diff --git a/sscall.c b/sscall.c @@ -134,7 +134,7 @@ input_pcm(void *data __attribute__ ((unused))) inp_pcm_priv.servinfo->ai_addr, inp_pcm_priv.servinfo->ai_addrlen); if (bytes < 0) - perror("sendto"); + warn("%s", strerror(errno)); usleep(UDELAY_SEND); } } while (1); @@ -279,7 +279,7 @@ main(int argc, char *argv[]) continue; if (bind(srv_sockfd, p1->ai_addr, p1->ai_addrlen) < 0) { close(srv_sockfd); - perror("bind"); + warn("%s", strerror(errno)); continue; } break;