Changeset a5e761d52d97a6681d7c9db3a7707d8af31852f5

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

[c4b13341984038de842402b66aa48c0852c1c4a1]

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

dead assignments, refs #283

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/collectd.c

    r9c84154 ra5e761d  
    542542 
    543543  uint16_t pkg_length; 
    544   uint16_t pkg_type; 
    545544 
    546545  if ((buffer_len < 0) || ((size_t) buffer_len < exp_size)) 
     
    554553  } 
    555554 
    556   memcpy ((void *) &tmp16, buffer, sizeof (tmp16)); 
     555  /* skip pkg_type */ 
    557556  buffer += sizeof (tmp16); 
    558   pkg_type = ntohs (tmp16); 
    559557 
    560558  memcpy ((void *) &tmp16, buffer, sizeof (tmp16)); 
     
    582580 
    583581  uint16_t pkg_length; 
    584   uint16_t pkg_type; 
    585582 
    586583  if ((buffer_len < 0) || (buffer_len < header_size)) 
     
    594591  } 
    595592 
    596   memcpy ((void *) &tmp16, buffer, sizeof (tmp16)); 
     593  /* skip pkg_type */ 
    597594  buffer += sizeof (tmp16); 
    598   pkg_type = ntohs (tmp16); 
    599595 
    600596  memcpy ((void *) &tmp16, buffer, sizeof (tmp16)); 
     
    885881  EVP_DigestInit(&ctx_md, EVP_sha1()); 
    886882  EVP_DigestUpdate(&ctx_md, buffer + buffer_offset, payload_len); 
    887   err = EVP_DigestFinal(&ctx_md, hash, &hash_length); 
     883  EVP_DigestFinal(&ctx_md, hash, &hash_length); 
    888884  if (memcmp (hash, pea.hash, sizeof (hash)) != 0) 
    889885  { 
  • src/modules/libstomp.c

    r7afb4e3 ra5e761d  
    108108{ 
    109109   apr_size_t remaining = size; 
    110    size=0; 
    111110        while( remaining>0 ) { 
    112111                apr_size_t length = remaining; 
     
    114113      data+=length; 
    115114      remaining -= length; 
    116       //      size += length; 
    117115      if( rc != APR_SUCCESS ) { 
    118116         return rc; 
  • src/modules/lua.c

    ra719cb6 ra5e761d  
    585585  noit_lua_check_info_t *ci = check->closure; 
    586586  struct timeval duration; 
    587   u_int32_t duration_ms; 
    588587 
    589588  gettimeofday(&ci->finish_time, NULL); 
     
    592591  memcpy(&ci->current.whence, &ci->finish_time, sizeof(ci->current.whence)); 
    593592  ci->current.duration = duration.tv_sec * 1000 + duration.tv_usec / 1000; 
    594   duration_ms = ci->current.duration; 
    595593 
    596594  noit_check_set_stats(self, check, &ci->current); 
     
    607605  noit_module_t *self; 
    608606  noit_check_t *check; 
    609   check = ci->check; 
    610607 
    611608  noitL(nldeb, "lua: %p resuming\n", ci->coro_state); 
     
    658655  struct nl_intcl *int_cl = closure; 
    659656  noit_lua_check_info_t *ci = int_cl->ci; 
    660   check = ci->check; 
    661657  noitL(nldeb, "lua: %p ->check_timeout\n", ci->coro_state); 
    662658  ci->timed_out = 1; 
  • src/modules/lua_dns.c

    ra719cb6 ra5e761d  
    252252  p.dnsp_qtyp = 0; 
    253253 
    254   while((r = dns_nextrr(&p, &rr)) > 0) { 
     254  while(dns_nextrr(&p, &rr) > 0) { 
    255255    const char *fieldname = NULL; 
    256256    char buff[DNS_MAXDN], *txt_str, *c; 
     
    417417  int n; 
    418418  const char *k; 
    419   dns_lookup_ctx_t **udata, *obj
     419  dns_lookup_ctx_t **udata
    420420 
    421421  n = lua_gettop(L); 
     
    424424    luaL_error(L, "metatable error, arg1 is not a noit.dns"); 
    425425  udata = lua_touserdata(L, 1); 
    426   obj = *udata; 
    427426  if(!lua_isstring(L, 2)) 
    428427    luaL_error(L, "metatable error, arg2 is not a string"); 
  • src/modules/lua_noit.c

    ra719cb6 ra5e761d  
    659659    cl->read_goal = lua_tointeger(L, 2); 
    660660    if(cl->read_goal <= cl->read_sofar) { 
    661       int base; 
    662661     i_know_better: 
    663       base = lua_gettop(L); 
    664662      /* We have enough, we can service this right here */ 
    665663      lua_pushlstring(L, cl->inbuff, cl->read_goal); 
     
    822820  int n; 
    823821  const char *k; 
    824   eventer_t *udata, e
     822  eventer_t *udata
    825823  n = lua_gettop(L); /* number of arguments */ 
    826824  assert(n == 2); 
     
    829827  } 
    830828  udata = lua_touserdata(L, 1); 
    831   e = *udata; 
    832829  if(!lua_isstring(L, 2)) { 
    833830    luaL_error(L, "metatable error, arg2 not a string!"); 
     
    14871484  int n; 
    14881485  const char *k; 
    1489   xmlNodePtr *udata, obj
     1486  xmlNodePtr *udata
    14901487  n = lua_gettop(L); /* number of arguments */ 
    14911488  assert(n == 2); 
     
    14941491  } 
    14951492  udata = lua_touserdata(L, 1); 
    1496   obj = *udata; 
    14971493  if(!lua_isstring(L, 2)) { 
    14981494    luaL_error(L, "metatable error, arg2 not a string!"); 
     
    15491545  int n; 
    15501546  const char *k; 
    1551   xmlDocPtr *udata, obj
     1547  xmlDocPtr *udata
    15521548  n = lua_gettop(L); /* number of arguments */ 
    15531549  assert(n == 2); 
     
    15561552  } 
    15571553  udata = lua_touserdata(L, 1); 
    1558   obj = *udata; 
    15591554  if(!lua_isstring(L, 2)) { 
    15601555    luaL_error(L, "metatable error, arg2 not a string!"); 
  • src/modules/snmp.c

    r9efbd3a ra5e761d  
    387387convert_v1pdu_to_v2( netsnmp_pdu* template_v1pdu ) { 
    388388  netsnmp_pdu *template_v2pdu; 
    389   netsnmp_variable_list *first_vb; 
    390389  netsnmp_variable_list *var; 
    391390  oid enterprise[MAX_OID_LEN]; 
     
    404403  } 
    405404  template_v2pdu->command = SNMP_MSG_TRAP2; 
    406   first_vb = template_v2pdu->variables; 
    407405 
    408406  /*