diff options
author | Peter Jones <pjones@redhat.com> | 2005-03-02 01:07:33 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-03-02 01:07:33 +0000 |
commit | 3c9129e61c6374936182b8b5c78ca50fdcc21e76 (patch) | |
tree | c88b8bc9d0fa586dea9a32c9132ec423f7e357cf /loader2/moduledeps.c | |
parent | 7ae6c6e7f99be78cddd498695cabba175df5a6ea (diff) | |
download | anaconda-3c9129e61c6374936182b8b5c78ca50fdcc21e76.tar.gz anaconda-3c9129e61c6374936182b8b5c78ca50fdcc21e76.tar.xz anaconda-3c9129e61c6374936182b8b5c78ca50fdcc21e76.zip |
another read with ignored return. I sure wish warn_unused_result could be
stifled by casting to void, like in the old days.
Diffstat (limited to 'loader2/moduledeps.c')
-rw-r--r-- | loader2/moduledeps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loader2/moduledeps.c b/loader2/moduledeps.c index 22bccc6e9..1fc4138f5 100644 --- a/loader2/moduledeps.c +++ b/loader2/moduledeps.c @@ -49,6 +49,7 @@ int mlLoadDeps(moduleDeps * moduleDepListPtr, const char * path) { int i, numItems; moduleDeps nextDep; moduleDeps moduleDepList = *moduleDepListPtr; + int ret; fd = open(path, O_RDONLY); if (fd < 0) { @@ -57,7 +58,7 @@ int mlLoadDeps(moduleDeps * moduleDepListPtr, const char * path) { fstat(fd, &sb); buf = alloca(sb.st_size + 1); - read(fd, buf, sb.st_size); + ret = read(fd, buf, sb.st_size); buf[sb.st_size] = '\0'; close(fd); |