summaryrefslogtreecommitdiffstats
path: root/tools/idevicecrashreport.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-08-02 08:56:47 +0200
committerGravatar Nikias Bassen2014-08-02 08:56:47 +0200
commitd56ad899e66b07b9a5f3cd802b2881ced1961011 (patch)
tree755ab46bd735a0af9b5e9db66c1fac9c351e52f1 /tools/idevicecrashreport.c
parent79fc1ededbbafba3204b952cc022b089a38547dd (diff)
downloadlibimobiledevice-d56ad899e66b07b9a5f3cd802b2881ced1961011.tar.gz
libimobiledevice-d56ad899e66b07b9a5f3cd802b2881ced1961011.tar.bz2
idevicecrashreport: Silence compiler warning about ignored return value from symlink()
Diffstat (limited to 'tools/idevicecrashreport.c')
-rw-r--r--tools/idevicecrashreport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index 5b4b186..dbed041 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -191,7 +191,9 @@ static int afc_client_copy_and_remove_crash_reports(afc_client_t afc, const char
}
/* create a symlink pointing to latest log */
- symlink(b, target_filename);
+ if (symlink(b, target_filename) < 0) {
+ fprintf(stderr, "Can't create symlink to %s\n", b);
+ }
#endif
if (!keep_crash_reports)