comparison src/getidblock.c @ 390:5c0ce43c7532

Fix a number of spelling mistakes Changes-by: codespell -w Suggested-by: codespell, spellintian, lintian I: libpst4: spelling-error-in-binary usr/lib/x86_64-linux-gnu/libpst.so.4.1.14 occured occurred I: libpst-dev: spelling-error-in-manpage usr/share/man/man5/outlook.pst.5.gz Attachement Attachment
author Paul Wise <pabs3@bonedaddy.net>
date Sat, 21 Dec 2019 21:25:45 +0800
parents 26c48ea9d896
children
comparison
equal deleted inserted replaced
389:3f83feface7a 390:5c0ce43c7532
32 } 32 }
33 33
34 DEBUG_INFO(("Printing block i_id %#"PRIx64", size %#"PRIx64"\n", i_id, (uint64_t)readSize)); 34 DEBUG_INFO(("Printing block i_id %#"PRIx64", size %#"PRIx64"\n", i_id, (uint64_t)readSize));
35 if (binary) { 35 if (binary) {
36 if (fwrite(buf, 1, readSize, stdout) != 0) { 36 if (fwrite(buf, 1, readSize, stdout) != 0) {
37 DIE(("Error occured during writing of buf to stdout\n")); 37 DIE(("Error occurred during writing of buf to stdout\n"));
38 } 38 }
39 } else { 39 } else {
40 printf("Block id %#"PRIx64", size %#"PRIx64"\n", i_id, (uint64_t)readSize); 40 printf("Block id %#"PRIx64", size %#"PRIx64"\n", i_id, (uint64_t)readSize);
41 pst_debug_hexdumper(stdout, buf, readSize, 0x10, 0); 41 pst_debug_hexdumper(stdout, buf, readSize, 0x10, 0);
42 } 42 }
95 case 'b': 95 case 'b':
96 // enable binary output 96 // enable binary output
97 binary = 1; 97 binary = 1;
98 break; 98 break;
99 case 'p': 99 case 'p':
100 // enable procesing of block 100 // enable processing of block
101 process = 1; 101 process = 1;
102 break; 102 break;
103 default: 103 default:
104 usage(); 104 usage();
105 exit(EXIT_FAILURE); 105 exit(EXIT_FAILURE);