sscall

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

commit c475325159d22a14df121efa2a8a80c0926262de
parent 2b468f12ea8aa9bf49ffebf3d927804cda8cacee
Author: sin <sin@2f30.org>
Date:   Mon Jun  4 15:06:01 +0100

sscall: Remove redundant return


Diffstat:
sscall.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/sscall.c b/sscall.c @@ -246,10 +246,8 @@ main(int argc, char *argv[]) cli_hints.ai_socktype = SOCK_DGRAM; rv = getaddrinfo(argv[0], argv[1], &cli_hints, &cli_servinfo); - if (rv) { + if (rv) errx(1, "getaddrinfo: %s", gai_strerror(rv)); - return 1; - } for (p0 = cli_servinfo; p0; p0 = p0->ai_next) { cli_sockfd = socket(p0->ai_family, p0->ai_socktype, @@ -270,10 +268,8 @@ main(int argc, char *argv[]) srv_hints.ai_flags = AI_PASSIVE; rv = getaddrinfo(NULL, argv[2], &srv_hints, &srv_servinfo); - if (rv) { + if (rv) errx(1, "getaddrinfo: %s", gai_strerror(rv)); - return 1; - } for(p1 = srv_servinfo; p1; p1 = p1->ai_next) { srv_sockfd = socket(p1->ai_family, p1->ai_socktype,