Changes in uspace/app/blkdump/blkdump.c [7354b5e:1d6dd2a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/blkdump/blkdump.c
r7354b5e r1d6dd2a 49 49 #include <inttypes.h> 50 50 #include <errno.h> 51 #include <str.h> 51 52 52 53 #define NAME "blkdump" … … 63 64 { 64 65 65 int rc;66 errno_t rc; 66 67 char *dev_path; 67 68 size_t block_size; … … 161 162 printf("Device %s has %" PRIuOFF64 " blocks, %" PRIuOFF64 " bytes each\n", dev_path, dev_nblocks, (aoff64_t) block_size); 162 163 164 int ret; 163 165 if (toc) 164 r c= print_toc();166 ret = print_toc(); 165 167 else 166 r c= print_blocks(block_offset, block_count, block_size);168 ret = print_blocks(block_offset, block_count, block_size); 167 169 168 170 block_fini(service_id); 169 171 170 return r c;172 return ret; 171 173 } 172 174 … … 177 179 aoff64_t limit; 178 180 size_t data_offset; 179 int rc;181 errno_t rc; 180 182 181 183 data = malloc(block_size); … … 216 218 { 217 219 scsi_toc_multisess_data_t toc; 218 int rc;220 errno_t rc; 219 221 220 222 rc = block_read_toc(service_id, 0, &toc, sizeof(toc));
Note:
See TracChangeset
for help on using the changeset viewer.