summaryrefslogtreecommitdiffstats
path: root/loader2/moduledeps.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-02 01:07:33 +0000
committerPeter Jones <pjones@redhat.com>2005-03-02 01:07:33 +0000
commit3c9129e61c6374936182b8b5c78ca50fdcc21e76 (patch)
treec88b8bc9d0fa586dea9a32c9132ec423f7e357cf /loader2/moduledeps.c
parent7ae6c6e7f99be78cddd498695cabba175df5a6ea (diff)
downloadanaconda-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.c3
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);