Show
Ignore:
Timestamp:
03/17/09 21:10:22 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1237324222 +0000
git-parent:

[f99cf462c3bf905a727087a97e5c305a52256d5e]

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

various changes to avoid dereferencing type-punned pointers and breaking strict-aliasing rules, refs #34

Files:

Legend:

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

    r26e5e98 r6210da7  
    298298          const char *prefix = NULL; 
    299299          int l1, l2; 
    300           noit_hash_retrieve(&req->headers, last_name, strlen(last_name), 
    301                              (void **)&prefix); 
     300          noit_hash_retr_str(&req->headers, last_name, strlen(last_name), 
     301                             &prefix); 
    302302          if(!prefix) FAIL; 
    303303          l1 = strlen(prefix); 
     
    583583  b->size += slen; \ 
    584584} while(0) 
    585   while(noit_hash_next(&ctx->res.headers, &iter, 
    586                        &key, &klen, (void **)&value)) { 
     585  while(noit_hash_next_str(&ctx->res.headers, &iter, 
     586                           &key, &klen, &value)) { 
    587587    int vlen = strlen(value); 
    588588    CTX_LEADER_APPEND(key, klen);