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