Changeset 4576

Show
Ignore:
Timestamp:
02/17/10 20:07:21 (5 months ago)
Author:
phk
Message:

Tell FlexeLint? that we ignore returnvalues on purpose.

Location:
trunk/varnish-cache
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/bin/varnishd/cache_center.c

    r4574 r4576  
    272272                 * before we close, to get queued data transmitted. 
    273273                 */ 
    274                 TCP_linger(sp->fd, 0); 
     274                (void)TCP_linger(sp->fd, 0); 
    275275                vca_close_session(sp, sp->doclose); 
    276276        } 
     
    12171217         */ 
    12181218        if (sp->step == STP_FIRST || sp->step == STP_START) 
    1219                 TCP_blocking(sp->fd); 
     1219                (void)TCP_blocking(sp->fd); 
    12201220 
    12211221        /* 
  • trunk/varnish-cache/bin/varnishd/cache_fetch.c

    r4545 r4576  
    368368                VBE_AddHostHeader(sp); 
    369369 
    370         TCP_blocking(vc->fd);   /* XXX: we should timeout instead */ 
     370        (void)TCP_blocking(vc->fd);     /* XXX: we should timeout instead */ 
    371371        WRW_Reserve(w, &vc->fd); 
    372372        (void)http_Write(w, hp, 0);     /* XXX: stats ? */ 
  • trunk/varnish-cache/bin/varnishd/cache_pipe.c

    r4414 r4576  
    8080                return; 
    8181        vc = sp->vbe; 
    82         TCP_blocking(vc->fd); 
     82        (void)TCP_blocking(vc->fd); 
    8383 
    8484        WRW_Reserve(w, &vc->fd); 
     
    101101        memset(fds, 0, sizeof fds); 
    102102 
    103         TCP_linger(vc->fd, 0); 
     103        (void)TCP_linger(vc->fd, 0); 
    104104        fds[0].fd = vc->fd; 
    105105        fds[0].events = POLLIN | POLLERR; 
    106106 
    107         TCP_linger(sp->fd, 0); 
     107        (void)TCP_linger(sp->fd, 0); 
    108108        fds[1].fd = sp->fd; 
    109109        fds[1].events = POLLIN | POLLERR; 
  • trunk/varnish-cache/bin/varnishd/cache_waiter_kqueue.c

    r4183 r4576  
    199199                                break; 
    200200                        VTAILQ_REMOVE(&sesshead, sp, list); 
    201                         TCP_linger(sp->fd, 0); 
     201                        (void)TCP_linger(sp->fd, 0); 
    202202                        vca_close_session(sp, "timeout"); 
    203203                        SES_Delete(sp); 
  • trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c

    r4561 r4576  
    167167                                VTAILQ_REMOVE(&sesshead, sp, list); 
    168168                                vca_unpoll(fd); 
    169                                 TCP_linger(sp->fd, 0); 
     169                                (void)TCP_linger(sp->fd, 0); 
    170170                                vca_close_session(sp, "timeout"); 
    171171                                SES_Delete(sp); 
  • trunk/varnish-cache/bin/varnishd/mgt_child.c

    r4575 r4576  
    207207                 * the listen queue to release us. 
    208208                 */ 
    209                 TCP_nonblocking(ls->sock); 
     209                (void)TCP_nonblocking(ls->sock); 
    210210                (void)TCP_filter_http(ls->sock); 
    211211                good++; 
  • trunk/varnish-cache/lib/libvarnish/tcp.c

    r4572 r4576  
    197197 
    198198        /* Set the socket non-blocking */ 
    199         TCP_nonblocking(s); 
     199        (void)TCP_nonblocking(s); 
    200200 
    201201        /* Attempt the connect */ 
     
    225225                return (-1); 
    226226 
    227         TCP_blocking(s); 
     227        (void)TCP_blocking(s); 
    228228        return (0); 
    229229} 
  • trunk/varnish-cache/lib/libvarnish/vss.c

    r4556 r4576  
    251251        } 
    252252        if (nonblock) 
    253                 TCP_nonblocking(sd); 
     253                (void)TCP_nonblocking(sd); 
    254254        i = connect(sd, &va->va_addr.sa, va->va_addrlen); 
    255255        if (i == 0 || (nonblock && errno == EINPROGRESS))