diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2015-03-19 21:27:26 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2015-03-19 21:27:26 +0100 |
commit | 8deb0011b98ad8e61fe8047566608174190ae58a (patch) | |
tree | 14f0e5b5b35e6bbb99b8fc74ad84aefc1acccef9 /manifest.c | |
parent | a8c9c69eded0626379cb8a5ada76600225c88e6c (diff) | |
download | ccache-8deb0011b98ad8e61fe8047566608174190ae58a.tar.gz |
Introduce logging wrappers for stat/lstat/fstat functions
Diffstat (limited to 'manifest.c')
-rw-r--r-- | manifest.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2014 Joel Rosdahl + * Copyright (C) 2009-2015 Joel Rosdahl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -393,8 +393,7 @@ verify_object(struct conf *conf, struct manifest *mf, struct object *obj, st = hashtable_search(hashed_files, path); if (!st) { struct stat file_stat; - if (stat(path, &file_stat) == -1) { - cc_log("Failed to stat include file %s: %s", path, strerror(errno)); + if (x_stat(path, &file_stat) != 0) { return 0; } st = x_malloc(sizeof(*st)); |