Changeset 72 in libcf for trunk/src/cf_codec.c


Ignore:
Timestamp:
04/15/13 10:02:52 (11 years ago)
Author:
cheese
Message:

#1 modify test code and data-type in codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_codec.c

    r68 r72  
    1717#define IS_UPPERCASE(x)     (x >= 'A' && x <= 'F')
    1818
     19typedef unsigned char __uchar;
     20
    1921/**
    2022 * 바이너리 데이터를 16진수 문자열로 변환
     
    3335                      char                  * hex)
    3436{
    35     size_t  iter = 0;
    36     size_t  count = len * 2 + 1;
     37    size_t      iter = 0;
     38    size_t      count = len * 2 + 1;
    3739
    38     char    hexchar[] = {'0', '1', '2', '3',
    39                         '4', '5', '6', '7',
    40                         '8', '9', 'a', 'b',
    41                         'c', 'd', 'e', 'f'};
     40    const char  hexchar[] = {'0', '1', '2', '3',
     41                            '4', '5', '6', '7',
     42                            '8', '9', 'a', 'b',
     43                            'c', 'd', 'e', 'f'};
    4244
    43     const unsigned char * ptr = bin;
     45    const __uchar   * ptr = bin;
    4446
    4547    ASSERT_ARGS (bin == NULL);
     
    7274                      size_t        * len)
    7375{
    74     typedef unsigned char __uchar;
    75 
    7676    int     result = 0;
    7777
Note: See TracChangeset for help on using the changeset viewer.