aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2018-02-12 13:48:07 +0200
committerShlomi Fish <shlomif@shlomifish.org>2018-02-12 13:48:07 +0200
commit8c4a85c8f45be25f227e023dce832b66dbfdb2c3 (patch)
treebfe69e7eee545704d13b49d097dc7b8c50a7b031
parentcf38cceeb1b98670927f5377688d5dc056cb310b (diff)
downloadmonitor-edid-8c4a85c8f45be25f227e023dce832b66dbfdb2c3.tar
monitor-edid-8c4a85c8f45be25f227e023dce832b66dbfdb2c3.tar.gz
monitor-edid-8c4a85c8f45be25f227e023dce832b66dbfdb2c3.tar.bz2
monitor-edid-8c4a85c8f45be25f227e023dce832b66dbfdb2c3.tar.xz
monitor-edid-8c4a85c8f45be25f227e023dce832b66dbfdb2c3.zip
fix warning. MGA#22575.
-rw-r--r--monitor-get-edid-using-vbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c
index 3f8ab1c..c6235fd 100644
--- a/monitor-get-edid-using-vbe.c
+++ b/monitor-get-edid-using-vbe.c
@@ -74,7 +74,8 @@ int main(int argc, char **argv)
}
if (size >= 0) {
- write(1, edid, size);
+ if (write(STDOUT_FILENO, edid, size)) {
+ }
return 0;
}