git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up compiler warnings about ignoring return values
[sliver-openvswitch.git]
/
ovsdb
/
log.c
diff --git
a/ovsdb/log.c
b/ovsdb/log.c
index
9c2e277
..
c8dac10
100644
(file)
--- a/
ovsdb/log.c
+++ b/
ovsdb/log.c
@@
-337,7
+337,7
@@
ovsdb_log_write(struct ovsdb_log *file, struct json *json)
/* Remove any partially written data, ignoring errors since there is
* nothing further we can do. */
/* Remove any partially written data, ignoring errors since there is
* nothing further we can do. */
-
ftruncate(fileno(file->stream), file->offset
);
+
ignore(ftruncate(fileno(file->stream), file->offset)
);
goto error;
}
goto error;
}