Mercurial > ecos
comparison packages/redboot/current/src/dump.c @ 1513:c4355f101bf6
Cleanups to remove warnings
| author | gthomas |
|---|---|
| date | Tue, 24 Feb 2004 14:15:14 +0000 |
| parents | 57f3c72256bb |
| children | 6beba10c1713 |
comparison
equal
deleted
inserted
replaced
| 1512:489f52f54b1c | 1513:c4355f101bf6 |
|---|---|
| 77 bool srec_dump, set_32bit, set_16bit, set_8bit; | 77 bool srec_dump, set_32bit, set_16bit, set_8bit; |
| 78 int i, n, off, cksum; | 78 int i, n, off, cksum; |
| 79 cyg_uint8 ch; | 79 cyg_uint8 ch; |
| 80 | 80 |
| 81 init_opts(&opts[0], 'b', true, OPTION_ARG_TYPE_NUM, | 81 init_opts(&opts[0], 'b', true, OPTION_ARG_TYPE_NUM, |
| 82 (void **)&base, (bool *)&base_set, "base address"); | 82 (void *)&base, (bool *)&base_set, "base address"); |
| 83 init_opts(&opts[1], 'l', true, OPTION_ARG_TYPE_NUM, | 83 init_opts(&opts[1], 'l', true, OPTION_ARG_TYPE_NUM, |
| 84 (void **)&len, (bool *)&len_set, "length"); | 84 (void *)&len, (bool *)&len_set, "length"); |
| 85 init_opts(&opts[2], 's', false, OPTION_ARG_TYPE_FLG, | 85 init_opts(&opts[2], 's', false, OPTION_ARG_TYPE_FLG, |
| 86 (void **)&srec_dump, 0, "dump data using Morotola S-records"); | 86 (void *)&srec_dump, 0, "dump data using Morotola S-records"); |
| 87 init_opts(&opts[3], '4', false, OPTION_ARG_TYPE_FLG, | 87 init_opts(&opts[3], '4', false, OPTION_ARG_TYPE_FLG, |
| 88 (void *)&set_32bit, (bool *)0, "dump 32 bit units"); | 88 (void *)&set_32bit, (bool *)0, "dump 32 bit units"); |
| 89 init_opts(&opts[4], '2', false, OPTION_ARG_TYPE_FLG, | 89 init_opts(&opts[4], '2', false, OPTION_ARG_TYPE_FLG, |
| 90 (void **)&set_16bit, (bool *)0, "dump 16 bit units"); | 90 (void *)&set_16bit, (bool *)0, "dump 16 bit units"); |
| 91 init_opts(&opts[5], '1', false, OPTION_ARG_TYPE_FLG, | 91 init_opts(&opts[5], '1', false, OPTION_ARG_TYPE_FLG, |
| 92 (void **)&set_8bit, (bool *)0, "dump 8 bit units"); | 92 (void *)&set_8bit, (bool *)0, "dump 8 bit units"); |
| 93 if (!scan_opts(argc, argv, 1, opts, 6, 0, 0, "")) { | 93 if (!scan_opts(argc, argv, 1, opts, 6, 0, 0, "")) { |
| 94 return; | 94 return; |
| 95 } | 95 } |
| 96 if (!base_set) { | 96 if (!base_set) { |
| 97 if (_base == 0) { | 97 if (_base == 0) { |
