diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-11-18 12:01:05 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-18 12:01:05 -0800 |
commit | d0378fb1ed67bfcde8ec88b65387e6e68bfedc41 (patch) | |
tree | f83d0b0b44af3268f53d18c75404d2a3917c1320 /rdoff | |
parent | dc24271fae375f62049aeb487761309654d44510 (diff) | |
download | nasm-d0378fb1ed67bfcde8ec88b65387e6e68bfedc41.tar.gz nasm-d0378fb1ed67bfcde8ec88b65387e6e68bfedc41.tar.bz2 nasm-d0378fb1ed67bfcde8ec88b65387e6e68bfedc41.zip |
BR 1834056: Remove warnings in rdoff/rdoff.c
Remove warnings, especially the alias warnings in rdoff/rdoff.c.
Diffstat (limited to 'rdoff')
-rw-r--r-- | rdoff/rdoff.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rdoff/rdoff.c b/rdoff/rdoff.c index 8201c72..6f84875 100644 --- a/rdoff/rdoff.c +++ b/rdoff/rdoff.c @@ -61,6 +61,7 @@ void membufwrite(memorybuffer * const b, void *data, int bytes) { uint16_t w; int32_t l; + char *c; if (b->next) { /* memory buffer full - use next buffer */ membufwrite(b->next, data, bytes); @@ -97,11 +98,9 @@ void membufwrite(memorybuffer * const b, void *data, int bytes) break; default: - while (bytes--) { - b->buffer[b->length++] = *(*(uint8_t **)&data); - - (*(uint8_t **)&data)++; - } + c = data; + while (bytes--) + b->buffer[b->length++] = *c++; break; } } @@ -350,7 +349,8 @@ int rdffindsegment(rdffile * f, int segno) */ int rdfloadseg(rdffile * f, int segment, void *buffer) { - int32_t fpos, slen; + int32_t fpos; + size_t slen; switch (segment) { case RDOFF_HEADER: |