tRemove last debugging messages. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
 (HTM) git clone git://r-36.net/geomyidae
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4d9d7f9471b8629e952d18ec5e59b0c7c009fec6
 (DIR) parent 3db43cc72cf7a9ca314ecafba616e8d7910e30f5
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 12 Nov 2018 21:50:25 +0100
       
       Remove last debugging messages.
       
       Diffstat:
         main.c                              |      10 ----------
       
       1 file changed, 0 insertions(+), 10 deletions(-)
       ---
 (DIR) diff --git a/main.c b/main.c
       t@@ -320,20 +320,16 @@ getlistenfd(struct addrinfo *hints, char *bindip, char *port, int *rlfdnum)
                listenfds = NULL;
                on = 1;
                for (rp = ai; rp != NULL; rp = rp->ai_next) {
       -                printf("getaddrinfo result: %s:%d\n", rp->ai_canonname,
       -                                rp->ai_protocol);
                        listenfds = xrealloc(listenfds,
                                        sizeof(*listenfds) * (++*rlfdnum));
                        listenfd = &listenfds[*rlfdnum-1];
        
                        *listenfd = socket(rp->ai_family, rp->ai_socktype,
                                        rp->ai_protocol);
       -                printf("*listenfd = %d\n", *listenfd);
                        if (*listenfd < 0)
                                continue;
                        if (setsockopt(*listenfd, SOL_SOCKET, SO_REUSEADDR, &on,
                                        sizeof(on)) < 0) {
       -                        printf("setsockopt failed\n");
                                close(*listenfd);
                                (*rlfdnum)--;
                                continue;
       t@@ -342,7 +338,6 @@ getlistenfd(struct addrinfo *hints, char *bindip, char *port, int *rlfdnum)
                        if (rp->ai_family == AF_INET6 && (setsockopt(*listenfd,
                                        IPPROTO_IPV6, IPV6_V6ONLY, &on,
                                        sizeof(on)) < 0)) {
       -                        printf("ipv6 only failed\n");
                                close(*listenfd);
                                (*rlfdnum)--;
                                continue;
       t@@ -554,8 +549,6 @@ main(int argc, char *argv[])
                }
        
                for (i = 0; i < nbindips; i++) {
       -                printf("binding %s:%s\n", bindips[i], port);
       -
                        memset(&hints, 0, sizeof(hints));
                        hints.ai_family = inetf;
                        hints.ai_flags = AI_PASSIVE;
       t@@ -573,9 +566,7 @@ main(int argc, char *argv[])
                                perror("getlistenfd");
                        }
        
       -                printf("nlfdret = %d\n", nlfdret);
                        for (j = 0; j < nlfdret; j++) {
       -                        printf("lfdret[%d] = %d\n", j, lfdret[j]);
                                if (listen(lfdret[j], 255) < 0) {
                                        perror("listen");
                                        close(lfdret[j]);
       t@@ -643,7 +634,6 @@ main(int argc, char *argv[])
                                        maxlfd = listfds[i];
                        }
        
       -                printf("pselect\n");
                        if (pselect(maxlfd+1, &rfd, NULL, NULL, NULL, NULL) < 0) {
                                if (errno == EINTR)
                                        continue;