Show
Ignore:
Timestamp:
10/26/09 13:54:16 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1256565256 +0000
git-parent:

[32caf513db21174aadcdb215e526729da411a265]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1256565256 +0000
Message:

Cleanup and make sure Solaris Sun Studio compilers get -mt and POSIX thread semantics or things will go very wrong, refs #34

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    r652d766 r4790fc8  
    5454struct bchain *bchain_alloc(size_t size) { 
    5555  struct bchain *n; 
    56   n = malloc(size + ((void *)n->buff - (void *)n)); 
     56  n = malloc(size + ((char *)n->buff - (char *)n)); 
    5757  if(!n) return NULL; 
    5858  n->prev = n->next = NULL; 
     
    462462    if(rv == noit_true) return mask | EVENTER_WRITE | EVENTER_EXCEPTION; 
    463463  } 
    464   return EVENTER_READ | EVENTER_EXCEPTION; 
     464  /* Not reached: 
     465   * return EVENTER_READ | EVENTER_EXCEPTION; 
     466   */ 
    465467} 
    466468noit_boolean 
     
    522524    while(in && bytes_read < len) { 
    523525      int partial_len = MIN(in->size, len - bytes_read); 
    524       if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); 
     526      if(buf) memcpy((char *)buf+bytes_read, in->buff+in->start, partial_len); 
    525527      bytes_read += partial_len; 
    526528      ctx->req.content_length_read += partial_len; 
     
    636638    ctx->conn.e = NULL; 
    637639    goto release; 
    638     return 0; 
    639640  } 
    640641  if(ctx->res.complete == noit_true) {