Changeset ecb7471db3eae36779832e1ef85f3365d57b9d63

Show
Ignore:
Timestamp:
10/22/09 01:21:50 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1256174510 +0000
git-parent:

[5c424a983bd3d9507beb3c712ee41e141b8f6f28]

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

various compiler warnings

Files:

Legend:

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

    rd83c60e recb7471  
    524524  if(exists) { 
    525525    int module_change; 
    526     char *target, *name, *module
     526    char *target = NULL, *name = NULL, *module = NULL
    527527    xmlNodePtr a; 
    528528    noit_check_t *ocheck; 
  • src/stratcon_jlog_streamer.c

    ra060696 recb7471  
    9898  if(ctx->timeout_event) { 
    9999    sub_timeval(ctx->timeout_event->whence, now, &diff); 
    100     nc_printf(ncct, "\tNext attempt in %llu.%06us\n", 
    101               (unsigned long long)diff.tv_sec, (unsigned int) diff.tv_usec); 
     100    nc_printf(ncct, "\tNext attempt in %lld.%06us\n", 
     101              (long long)diff.tv_sec, (unsigned int) diff.tv_usec); 
    102102  } 
    103103  else if(ctx->remote_cn) { 
     
    125125      nc_printf(ncct, "\tState: %s\n" 
    126126                      "\tNext checkpoint: [%08x:%08x]\n" 
    127                       "\tLast event: %llu.%06us ago\n" 
     127                      "\tLast event: %lld.%06us ago\n" 
    128128                      "\tEvents this session: %llu (%0.2f/s)\n" 
    129129                      "\tOctets this session: %llu (%0.2f/s)\n", 
    130130                state, 
    131131                jctx->header.chkpt.log, jctx->header.chkpt.marker, 
    132                 (unsigned long long)diff.tv_sec, (unsigned int)diff.tv_usec, 
     132                (long long)diff.tv_sec, (unsigned int)diff.tv_usec, 
    133133                jctx->total_events, 
    134134                (double)jctx->total_events/session_duration_seconds, 
     
    826826   
    827827      sub_timeval(now, ctx->last_connect, &diff); 
    828       snprintf(buff, sizeof(buff), "%llu.%06d", 
    829                (unsigned long long)diff.tv_sec, (int)diff.tv_usec); 
     828      snprintf(buff, sizeof(buff), "%lld.%06d", 
     829               (long long)diff.tv_sec, (int)diff.tv_usec); 
    830830      xmlSetProp(node, (xmlChar *)"session_duration", (xmlChar *)buff); 
    831831   
     
    837837        xmlSetProp(node, (xmlChar *)"last_event", (xmlChar *)buff); 
    838838        sub_timeval(now, last, &diff); 
    839         snprintf(buff, sizeof(buff), "%llu.%06d", 
    840                  (unsigned long long)diff.tv_sec, (int)diff.tv_usec); 
     839        snprintf(buff, sizeof(buff), "%lld.%06d", 
     840                 (long long)diff.tv_sec, (int)diff.tv_usec); 
    841841        xmlSetProp(node, (xmlChar *)"last_event_age", (xmlChar *)buff); 
    842842      } 
     
    970970  char *cp, target[128]; 
    971971  unsigned short port = 43191; 
    972   int adding = (int)closure; 
     972  int adding = (int)(vpsized_int)closure; 
    973973  if(argc != 1) 
    974974    return -1;