database: I/O error handling in db_save()

Check ferror() instead of the fprintf() return value.
This commit is contained in:
Max Kellermann
2009-11-07 16:20:07 +01:00
parent 1a4cfc3d90
commit c422344190
3 changed files with 16 additions and 19 deletions

View File

@@ -27,7 +27,7 @@
struct directory;
int
void
directory_save(FILE *fp, struct directory *directory);
bool