diff options
author | Keith Packard <keithp@keithp.com> | 2019-01-03 11:41:49 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-01-03 12:09:58 -0800 |
commit | 6f729ff46b2f4531db68f0af85e7e9fe0f6d1969 (patch) | |
tree | d0a93a48bd3012decbb230f5aa17ecc6c793cad2 /ao-tools/lib/ao-hex.c | |
parent | f14c799ae7ff3be56c28f5694f04c03daff7708e (diff) |
ao-tools: Fix warnings in ao-tools
None of these appear likely to have caused actual problems.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/ao-hex.c')
-rw-r--r-- | ao-tools/lib/ao-hex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ao-tools/lib/ao-hex.c b/ao-tools/lib/ao-hex.c index 2ceed7ab..73f3d7be 100644 --- a/ao-tools/lib/ao-hex.c +++ b/ao-tools/lib/ao-hex.c @@ -113,9 +113,9 @@ ao_hex_read_record(struct ao_hex_input *input) struct ao_hex_record *record = NULL; enum ao_hex_read_state state = read_marker; char c; - int nhexbytes; - uint32_t hex; - uint32_t ndata; + int nhexbytes = 0; + uint32_t hex = 0; + uint32_t ndata = 0; uint8_t checksum; while (state != read_done) { @@ -451,8 +451,8 @@ ao_hex_image_free(struct ao_hex_image *image) free(image); } -uint32_t min(uint32_t a, uint32_t b) { return a < b ? a : b; } -uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } +static uint32_t min(uint32_t a, uint32_t b) { return a < b ? a : b; } +static uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } struct ao_hex_image * ao_hex_image_cat(struct ao_hex_image *a, struct ao_hex_image *b) |