- Timestamp:
- May 26, 2008, 5:20:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tt-loader/main.c
r12 r13 79 79 #endif 80 80 81 static inline unsigned round up (unsigned v, unsigned d)81 static inline unsigned round_up (unsigned v, unsigned d) 82 82 { 83 83 v+= --d; … … 198 198 } 199 199 200 toread.content= malloc (round up (toread.size, 4));200 toread.content= malloc (round_up (toread.size, 4)); 201 201 if (toread.content == NULL) 202 202 { … … 763 763 free((void *)current.content); 764 764 current.size = size ; 765 p = malloc (round up (size, 4));765 p = malloc (round_up (size, 4)); 766 766 if ( p == NULL) 767 767 { 768 log2("Out of memory requesting %d bytes\n", round up (size, 4));768 log2("Out of memory requesting %d bytes\n", round_up (size, 4)); 769 769 loop=0 ; 770 770 break ; … … 958 958 } 959 959 960 size= round up (size, 4);960 size= round_up (size, 4); 961 961 962 962 p[0x21]= cpu_to_le32 (size - 0x40); … … 969 969 p[0x12]= cpu_to_le32 (size); 970 970 971 buffsize= 128 + round up (size, 4);971 buffsize= 128 + round_up (size, 4); 972 972 973 973 cmdfile = readfile(argv[ARG_CMDFILE]);
Note: See TracChangeset
for help on using the changeset viewer.