Changeset 251 for trunk/src


Ignore:
Timestamp:
05/05/11 21:34:35 (14 years ago)
Author:
tim
Message:

simplified NTTIME storage and conversions

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/common.c

    r232 r251  
    361361
    362362
    363 void formatTime(const REGFI_NTTIME* nttime, char* output)
     363void formatTime(REGFI_NTTIME nttime, char* output)
    364364{
    365365  time_t tmp_time[1];
  • trunk/src/reglookup-recover.c

    r233 r251  
    7373  char* quoted_raw = "";
    7474
    75   formatTime(&nk->mtime, mtime);
     75  formatTime(nk->mtime, mtime);
    7676 
    7777  /* XXX: Add command line option to choose output encoding */
  • trunk/src/reglookup.c

    r249 r251  
    107107  {
    108108    cur_key = regfi_iterator_cur_key(iter);
    109     *tmp_time = regfi_nt2unix_time(&cur_key->mtime);
     109    *tmp_time = regfi_nt2unix_time(cur_key->mtime);
    110110    tmp_time_s = gmtime(tmp_time);
    111111    strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S", tmp_time_s);
     
    304304  const REGFI_CLASSNAME* classname;
    305305
    306   formatTime(&key->mtime, mtime);
     306  formatTime(key->mtime, mtime);
    307307
    308308  if(print_security && (sk=regfi_fetch_sk(iter->f, key)))
Note: See TracChangeset for help on using the changeset viewer.