projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure printf format specifiers and types match (fixes compiler warning).
[cumulus.git]
/
metadata.cc
diff --git
a/metadata.cc
b/metadata.cc
index
d946386
..
e1ea1aa
100644
(file)
--- a/
metadata.cc
+++ b/
metadata.cc
@@
-24,6
+24,8
@@
* handling of the statcache, and re-use of metadata between snapshots.
*/
* handling of the statcache, and re-use of metadata between snapshots.
*/
+#include <stdlib.h>
+#include <string.h>
#include <string>
#include <iostream>
#include <map>
#include <string>
#include <iostream>
#include <map>
@@
-126,7
+128,7
@@
MetadataWriter::MetadataWriter(TarSegmentStore *store,
if (statcache_out == NULL) {
fprintf(stderr, "Error opening statcache %s: %m\n",
statcache_tmp_path.c_str());
if (statcache_out == NULL) {
fprintf(stderr, "Error opening statcache %s: %m\n",
statcache_tmp_path.c_str());
-
throw IOException
("Error opening statcache");
+
fatal
("Error opening statcache");
}
old_metadata_eof = false;
}
old_metadata_eof = false;