Changeset 5491270242210913e348d069064085eb206601bf

Show
Ignore:
Timestamp:
06/13/10 15:00:40 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1276441240 +0000
git-parent:

[cea7bad500f166f4b98b61333b92bec7ccd29c7b]

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

refs #34

Files:

Legend:

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

    rc6a5f68 r5491270  
    6868  gettimeofday(&now, NULL); 
    6969  sub_timeval(e->whence, now, &diff); 
    70   snprintf(wfn, sizeof(wfn), " fires: %lld.%06ds", (long long)diff.tv_sec, diff.tv_usec); 
     70  snprintf(wfn, sizeof(wfn), " fires: %lld.%06ds", (long long)diff.tv_sec, (int)diff.tv_usec); 
    7171  snprintf(funcptr, sizeof(funcptr), "%p", e->callback); 
    7272  nc_printf(ncct, "  [%p]%s%s [%c%c%c%c] -> %s(%p)\n", 
  • src/noit_rest.c

    rc6a5f68 r5491270  
    442442  struct stat st; 
    443443  int fd; 
    444   void *contents
     444  void *contents = MAP_FAILED
    445445 
    446446  if(npats != 1 || 
     
    479479    contents = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); 
    480480    close(fd); 
    481     if(contents == (void *)-1) goto not_found; 
     481    if(contents == MAP_FAILED) goto not_found; 
    482482  } 
    483483  noit_http_response_ok(ctx, "text/html");