Changeset c6a5f6843e8c4487fe86123f4f910a49ebe29558

Show
Ignore:
Timestamp:
05/26/10 01:39:33 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1274837973 +0000
git-parent:

[86e1c05fa7c180d9d908fc39e800e0ed70c8aeb8]

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

dead assignments, refs #283

Files:

Legend:

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

    r6d95549 rc6a5f68  
    794794noit_metric_guess_type(const char *s, void **replacement) { 
    795795  char *copy, *cp, *trailer, *rpl; 
    796   int negative = 0, bigF = 0
     796  int negative = 0
    797797  metric_type_t type = METRIC_STRING; 
    798798 
     
    866866 
    867867  exponent: 
    868    if(s[0] == 'E') bigF = 1; /* We want the caps variant */ 
    869868   s++; 
    870869   if(s[0] != '-' && s[0] != '+') goto notanumber; 
  • src/noit_console_complete.c

    r88a7178 rc6a5f68  
    9898  const LineInfo *li; 
    9999  char **cmds, *curstr; 
    100   int len, i, cnt = 32; 
     100  int len, cnt = 32; 
    101101 
    102102  li = el_line(el); 
     
    107107 
    108108  cmds = alloca(32 * sizeof(*cmds)); 
    109   i = noit_tokenize(curstr, cmds, &cnt); 
     109  (void) noit_tokenize(curstr, cmds, &cnt); 
    110110 
    111111  el_get(el, EL_USERDATA, (void *)&ncct); 
  • src/noit_console_state.c

    r8135eae rc6a5f68  
    515515 
    516516  if(!argc) { 
    517     noit_console_state_stack_t *i = current
     517    noit_console_state_stack_t *i
    518518    if(!current) { 
    519519      nc_printf(ncct, "no state!\n"); 
  • src/noit_console_telnet.c

    r0b1d2f2 rc6a5f68  
    17991799noit_console_telnet_closure_t 
    18001800noit_console_telnet_alloc(noit_console_closure_t ncct) { 
    1801   int on; 
    18021801  noit_console_telnet_closure_t telnet, tmp; 
    18031802  static unsigned char ttytype_sbbuf[] = { 
     
    18261825  if (my_state_is_wont(TELOPT_ECHO)) 
    18271826    send_will(TELOPT_ECHO, 1); 
    1828   on = 1; 
    18291827  init_termbuf(ncct); 
    18301828#ifdef LINEMODE 
  • src/noit_http.c

    rc9dd5d8 rc6a5f68  
    10781078      r->next = n; 
    10791079      n->prev = r; 
    1080       r = n; 
    10811080    } 
    10821081    else { 
    1083       r = ctx->res.output_raw = n; 
     1082      ctx->res.output_raw = n; 
    10841083    } 
    10851084  } 
  • src/noit_listener.c

    r55b3471 rc6a5f68  
    510510       break; 
    511511      case AF_UNIX: 
    512         len = SUN_LEN(((struct sockaddr_un *)remote)); 
    513512        snprintf(name, sizeof(name), "%s", ((struct sockaddr_un *)remote)->sun_path); 
    514513        break; 
  • src/noit_rest.c

    rfa84adf rc6a5f68  
    396396  struct rest_xml_payload *rxc; 
    397397  if(restc->call_closure == NULL) { 
    398     rxc = restc->call_closure = calloc(1, sizeof(*rxc)); 
     398    restc->call_closure = calloc(1, sizeof(*rxc)); 
    399399    restc->call_closure_free = rest_xml_payload_free; 
    400400  } 
  • src/noitd.c

    r77c2f1d rc6a5f68  
    348348  /* Reacquire the lock */ 
    349349  if(*lockfile) { 
    350     if((lockfd = noit_lockfile_acquire(lockfile)) < 0) { 
     350    if(noit_lockfile_acquire(lockfile) < 0) { 
    351351      noitL(noit_stderr, "Failed to acquire lock: %s\n", lockfile); 
    352352      exit(-1); 
  • src/stratcon_datastore.c

    r3c6cba1 rc6a5f68  
    265265  /* Force release these without holding the lock */ 
    266266  while(cq) { 
    267     prev = cq; 
    268267    cq = cq->next; 
    269268    release_conn_q_forceable(cq, 1); 
  • src/stratcon_iep.c

    r31fab75 rc6a5f68  
    248248 
    249249  /* Phase 4: clean the markings */ 
    250   mgen = 0; 
    251250  memset(&iter, 0, sizeof(iter)); 
    252251  while(noit_hash_next(&stmt_by_id, &iter, &key, &klen, &vstmt)) { 
     
    442441       break; 
    443442      case AF_UNIX: 
    444         len = SUN_LEN(((struct sockaddr_un *)remote)); 
    445443        snprintf(remote_str, sizeof(remote_str), "%s", ((struct sockaddr_un *)remote)->sun_path); 
    446444        break; 
  • src/stratcon_jlog_streamer.c

    r3b79719 rc6a5f68  
    576576       break; 
    577577      case AF_UNIX: 
    578         len = SUN_LEN(&(nctx->r.remote_un)); 
    579578        snprintf(remote_str, sizeof(remote_str), "%s", nctx->r.remote_un.sun_path); 
    580579        break; 
  • src/stratcond.c

    r77c2f1d rc6a5f68  
    174174 
    175175static int child_main() { 
    176   int lockfd; 
    177176  char lockfile[PATH_MAX]; 
    178177  char conf_str[1024]; 
     
    195194   * If not we will daemon and must reacquire the lock. 
    196195   */ 
    197   lockfd = -1; 
    198196  lockfile[0] = '\0'; 
    199197  if(noit_conf_get_stringbuf(NULL, "/" APPNAME "/@lockfile", 
    200198                             lockfile, sizeof(lockfile))) { 
    201     if((lockfd = noit_lockfile_acquire(lockfile)) < 0) { 
     199    if(noit_lockfile_acquire(lockfile) < 0) { 
    202200      noitL(noit_stderr, "Failed to acquire lock: %s\n", lockfile); 
    203201      exit(-1);