diff options
author | Nikias Bassen | 2014-08-02 08:56:47 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-08-02 08:56:47 +0200 |
commit | d56ad899e66b07b9a5f3cd802b2881ced1961011 (patch) | |
tree | 755ab46bd735a0af9b5e9db66c1fac9c351e52f1 | |
parent | 79fc1ededbbafba3204b952cc022b089a38547dd (diff) | |
download | libimobiledevice-d56ad899e66b07b9a5f3cd802b2881ced1961011.tar.gz libimobiledevice-d56ad899e66b07b9a5f3cd802b2881ced1961011.tar.bz2 |
idevicecrashreport: Silence compiler warning about ignored return value from symlink()
-rw-r--r-- | tools/idevicecrashreport.c | 4 |
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) |