Changeset 168 for trunk/src


Ignore:
Timestamp:
03/02/10 19:08:42 (15 years ago)
Author:
tim
Message:

merged remaining smb_deps items into regfi

began formatting API comments for use with doxygen

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/common.c

    r160 r168  
    160160  char* tmp_ptr;
    161161  char* delim;
    162   uint32 ret_val_left, i, tmp_len;
     162  uint32_t ret_val_left, i, tmp_len;
    163163
    164164  if(data == NULL || data->size == 0)
  • trunk/src/reglookup-recover.c

    r161 r168  
    4040
    4141
    42 char* getQuotedData(int fd, uint32 offset, uint32 length)
    43 {
    44   uint8* buf;
     42char* getQuotedData(int fd, uint32_t offset, uint32_t length)
     43{
     44  uint8_t* buf;
    4545  char* quoted_buf;
    46   uint32 len;
     46  uint32_t len;
    4747
    4848  if((lseek(fd, offset, SEEK_SET)) == -1)
    4949    return NULL;
    5050
    51   buf = (uint8*)malloc(length);
     51  buf = (uint8_t*)malloc(length);
    5252  if(buf == NULL)
    5353    return NULL;
     
    7575  char* quoted_raw = "";
    7676
    77   *tmp_time = nt_time_to_unix(&nk->mtime);
     77  *tmp_time = regfi_nt2unix_time(&nk->mtime);
    7878  tmp_time_s = gmtime(tmp_time);
    7979  strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S", tmp_time_s);
     
    217217
    218218
    219 int printCell(REGFI_FILE* f, uint32 offset)
     219int printCell(REGFI_FILE* f, uint32_t offset)
    220220{
    221221  char* quoted_buf;
    222   uint32 cell_length;
     222  uint32_t cell_length;
    223223  bool unalloc;
    224224
     
    249249  REGFI_NK_REC* cur_ancestor;
    250250  char* ret_val;
    251   uint32 virt_offset, i, stack_size, ret_val_size, ret_val_used, offset;
    252   int32 max_size;
     251  uint32_t virt_offset, i, stack_size, ret_val_size, ret_val_used, offset;
     252  int32_t max_size;
    253253  REGFI_BUFFER* path_element;
    254254 
     
    278278        path_element = talloc(path_stack, REGFI_BUFFER);
    279279        if(path_element != NULL)
    280           path_element->buf = (uint8*)quote_string(cur_ancestor->keyname,
     280          path_element->buf = (uint8_t*)quote_string(cur_ancestor->keyname,
    281281                                                   key_special_chars);
    282282         
     
    343343
    344344
    345 bool removeRange(range_list* rl, uint32 offset, uint32 length)
    346 {
    347   int32 rm_idx;
     345bool removeRange(range_list* rl, uint32_t offset, uint32_t length)
     346{
     347  int32_t rm_idx;
    348348  const range_list_element* cur_elem;
    349349
     
    405405  const range_list_element* cur_elem;
    406406  REGFI_VK_REC* vk;
    407   uint32 i, j;
     407  uint32_t i, j;
    408408
    409409  for(i=0; i < range_list_size(unalloc_cells); i++)
     
    450450  range_list* bd_cells;
    451451  REGFI_BUFFER data;
    452   uint32 i, j, offset, cell_length, length;
    453   int32 max_size;
     452  uint32_t i, j, offset, cell_length, length;
     453  int32_t max_size;
    454454  bool unalloc;
    455455
     
    583583  const range_list_element* cur_elem;
    584584  REGFI_NK_REC* key;
    585   uint32 i, j;
     585  uint32_t i, j;
    586586  int error_code = 0;
    587587
     
    637637  REGFI_VK_REC* vk;
    638638  const range_list_element* cur_elem;
    639   uint32 i, j, num_keys, off, values_length;
    640   int32 max_size;
     639  uint32_t i, j, num_keys, off, values_length;
     640  int32_t max_size;
    641641
    642642  num_keys=range_list_size(unalloc_keys);
     
    663663           * parsed structure.
    664664           */
    665           values_length = (nk->values->num_values+1)*sizeof(uint32);
     665          values_length = (nk->values->num_values+1)*sizeof(uint32_t);
    666666          if(values_length != (values_length & 0xFFFFFFF8))
    667667            values_length = (values_length & 0xFFFFFFF8) + 8;
     
    727727  const range_list_element* cur_elem;
    728728  REGFI_SK_REC* sk;
    729   uint32 i, j;
     729  uint32_t i, j;
    730730
    731731  for(i=0; i < range_list_size(unalloc_cells); i++)
     
    778778  REGFI_NK_REC* tmp_key;
    779779  REGFI_VK_REC* tmp_value;
    780   uint32 argi, arge, i, j, ret, num_unalloc_keys;
     780  uint32_t argi, arge, i, j, ret, num_unalloc_keys;
    781781 
    782782  /* Process command line arguments */
  • trunk/src/reglookup.c

    r162 r168  
    132132  char* next = NULL;
    133133  char* copy;
    134   uint32 ret_cur = 0;
     134  uint32_t ret_cur = 0;
    135135
    136136  ret_val = (char**)malloc((REGFI_MAX_DEPTH+1+1)*sizeof(char**));
     
    179179void freePath(char** path)
    180180{
    181   uint32 i;
     181  uint32_t i;
    182182
    183183  if(path == NULL)
     
    196196  const REGFI_ITER_POSITION* cur;
    197197  const REGFI_NK_REC* tmp_key;
    198   uint32 buf_left = 127;
    199   uint32 buf_len = buf_left+1;
    200   uint32 name_len = 0;
    201   uint32 grow_amt;
     198  uint32_t buf_left = 127;
     199  uint32_t buf_len = buf_left+1;
     200  uint32_t name_len = 0;
     201  uint32_t grow_amt;
    202202  char* buf;
    203203  char* new_buf;
     
    245245    if(name_len+1 > buf_left)
    246246    {
    247       grow_amt = (uint32)(buf_len/2);
     247      grow_amt = (uint32_t)(buf_len/2);
    248248      buf_len += name_len+1+grow_amt-buf_left;
    249249      if((new_buf = realloc(buf, buf_len)) == NULL)
     
    298298  REGFI_CLASSNAME* classname;
    299299
    300   *tmp_time = nt_time_to_unix(&k->mtime);
     300  *tmp_time = regfi_nt2unix_time(&k->mtime);
    301301  tmp_time_s = gmtime(tmp_time);
    302302  strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S", tmp_time_s);
     
    454454  char* tmp_path_joined;
    455455  const char** tmp_path;
    456   uint32 i;
     456  uint32_t i;
    457457 
    458458  if(path == NULL)
     
    557557  REGFI_ITERATOR* iter;
    558558  int retr_path_ret;
    559   uint32 argi, arge;
     559  uint32_t argi, arge;
    560560
    561561  /* Process command line arguments */
Note: See TracChangeset for help on using the changeset viewer.