diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2010-06-24 14:30:19 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2010-06-24 14:30:19 -0800 |
| commit | 0e0936d11edd81d6f4fd31b545b8b171a5650bce (patch) | |
| tree | 236843b3b309859615d5a89f919bf6dd4bafa36c /src/bindump.c | |
| parent | 8791f4579446d7f26de65e6302390cdbe4fae68a (diff) | |
| download | dmstools-0e0936d11edd81d6f4fd31b545b8b171a5650bce.tar.gz dmstools-0e0936d11edd81d6f4fd31b545b8b171a5650bce.tar.bz2 dmstools-0e0936d11edd81d6f4fd31b545b8b171a5650bce.tar.xz dmstools-0e0936d11edd81d6f4fd31b545b8b171a5650bce.zip | |
Standardizing opts variable type in bindump.
Diffstat (limited to 'src/bindump.c')
| -rw-r--r-- | src/bindump.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bindump.c b/src/bindump.c index 73a49c3..5bf8b2a 100644 --- a/src/bindump.c +++ b/src/bindump.c | |||
| @@ -168,11 +168,11 @@ int my_open PARAMS((BinDumpFile * file, uint32_t verbose)); | |||
| 168 | 168 | ||
| 169 | // displays the diff between two files | 169 | // displays the diff between two files |
| 170 | size_t my_print_diff PARAMS((BinDumpFile * file1, BinDumpFile * file2, | 170 | size_t my_print_diff PARAMS((BinDumpFile * file1, BinDumpFile * file2, |
| 171 | size_t offset, size_t len, uint32_t opts)); | 171 | size_t offset, size_t len, unsigned opts)); |
| 172 | 172 | ||
| 173 | // displays one line 8 byte chunk of data | 173 | // displays one line 8 byte chunk of data |
| 174 | size_t my_print_dump PARAMS((BinDumpFile * file, size_t offset, size_t len, | 174 | size_t my_print_dump PARAMS((BinDumpFile * file, size_t offset, size_t len, |
| 175 | uint32_t opts)); | 175 | unsigned opts)); |
| 176 | 176 | ||
| 177 | // performs read upon file | 177 | // performs read upon file |
| 178 | int my_read PARAMS((BinDumpFile * file, size_t offset, size_t len, | 178 | int my_read PARAMS((BinDumpFile * file, size_t offset, size_t len, |
| @@ -185,7 +185,7 @@ void my_usage PARAMS((void)); | |||
| 185 | void my_version PARAMS((void)); | 185 | void my_version PARAMS((void)); |
| 186 | 186 | ||
| 187 | // displays data in binary notation | 187 | // displays data in binary notation |
| 188 | char * my_byte2str PARAMS((uint8_t data, char * buff, int opts)); | 188 | char * my_byte2str PARAMS((uint8_t data, char * buff, unsigned opts)); |
| 189 | 189 | ||
| 190 | 190 | ||
| 191 | ///////////////// | 191 | ///////////////// |
| @@ -200,7 +200,6 @@ char * my_byte2str PARAMS((uint8_t data, char * buff, int opts)); | |||
| 200 | int main(int argc, char * argv[]) | 200 | int main(int argc, char * argv[]) |
| 201 | { | 201 | { |
| 202 | int c; | 202 | int c; |
| 203 | int opts; | ||
| 204 | int opt_index; | 203 | int opt_index; |
| 205 | size_t offset; | 204 | size_t offset; |
| 206 | size_t offset_mod; | 205 | size_t offset_mod; |
| @@ -208,6 +207,7 @@ int main(int argc, char * argv[]) | |||
| 208 | size_t len; | 207 | size_t len; |
| 209 | size_t line; | 208 | size_t line; |
| 210 | size_t line_add; | 209 | size_t line_add; |
| 210 | unsigned opts; | ||
| 211 | uint32_t verbose; | 211 | uint32_t verbose; |
| 212 | BinDumpFile file1; | 212 | BinDumpFile file1; |
| 213 | BinDumpFile file2; | 213 | BinDumpFile file2; |
| @@ -497,7 +497,7 @@ int my_open(BinDumpFile * file, uint32_t verbose) | |||
| 497 | /// @param[in] verbose verbose level of messages to display | 497 | /// @param[in] verbose verbose level of messages to display |
| 498 | /// @param[in] opts output options | 498 | /// @param[in] opts output options |
| 499 | size_t my_print_diff(BinDumpFile * file1, BinDumpFile * file2, size_t offset, | 499 | size_t my_print_diff(BinDumpFile * file1, BinDumpFile * file2, size_t offset, |
| 500 | size_t len, uint32_t opts) | 500 | size_t len, unsigned opts) |
| 501 | { | 501 | { |
| 502 | char buff[9]; | 502 | char buff[9]; |
| 503 | size_t s; | 503 | size_t s; |
| @@ -655,7 +655,7 @@ size_t my_print_diff(BinDumpFile * file1, BinDumpFile * file2, size_t offset, | |||
| 655 | /// @param[in] verbose verbose level of messages to display | 655 | /// @param[in] verbose verbose level of messages to display |
| 656 | /// @param[in] opts output options | 656 | /// @param[in] opts output options |
| 657 | size_t my_print_dump(BinDumpFile * file, size_t offset, size_t len, | 657 | size_t my_print_dump(BinDumpFile * file, size_t offset, size_t len, |
| 658 | uint32_t opts) | 658 | unsigned opts) |
| 659 | { | 659 | { |
| 660 | char buff[9]; | 660 | char buff[9]; |
| 661 | size_t s; | 661 | size_t s; |
| @@ -785,7 +785,7 @@ void my_version(void) | |||
| 785 | /// @param[in] data 8 bits to translate into an ASCII string buffer | 785 | /// @param[in] data 8 bits to translate into an ASCII string buffer |
| 786 | /// @param[out] buff ASCII string buffer to hold the result | 786 | /// @param[out] buff ASCII string buffer to hold the result |
| 787 | /// @param[in] opts output options | 787 | /// @param[in] opts output options |
| 788 | char * my_byte2str(uint8_t data, char * buff, int opts) | 788 | char * my_byte2str(uint8_t data, char * buff, unsigned opts) |
| 789 | { | 789 | { |
| 790 | uint32_t b; | 790 | uint32_t b; |
| 791 | if (!(opts & MY_OPT_REVERSEBIT)) | 791 | if (!(opts & MY_OPT_REVERSEBIT)) |
