aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff
diff options
context:
space:
mode:
authorJim Kukunas <james.t.kukunas@linux.intel.com>2014-11-10 10:59:26 -0800
committerJim Kukunas <james.t.kukunas@linux.intel.com>2014-11-10 11:45:10 -0800
commite184c0b0cb8c886428975a406f20893696651ede (patch)
tree595b622a1328ee70abfc15e80afaf65fad0d7be1 /rdoff
parente76a6260556d76b756ef56cdd4ca5b41e61259bc (diff)
downloadnasm-e184c0b0cb8c886428975a406f20893696651ede.tar.gz
nasm-e184c0b0cb8c886428975a406f20893696651ede.tar.xz
nasm-e184c0b0cb8c886428975a406f20893696651ede.zip
rdoff: don't check fwritezero() return value.
Since e76a6260556d76b756ef56cdd4ca5b41e61259bc, the return type of fwritezero() is void. Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/rdf2bin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rdoff/rdf2bin.c b/rdoff/rdf2bin.c
index 72e5104b..1e33075c 100644
--- a/rdoff/rdf2bin.c
+++ b/rdoff/rdf2bin.c
@@ -86,8 +86,7 @@ static int output_bin(FILE *f, void *data, uint32_t bytes, uint32_t where)
}
pad = (where-origin) - offset;
- if (fwritezero(pad, f) != pad)
- return -1;
+ fwritezero(pad, f);
offset += pad;
if (fwrite(data, 1, bytes, f) != bytes)