diff options
| author | 2014-08-02 08:56:47 +0200 | |
|---|---|---|
| committer | 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 | |||
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | /* create a symlink pointing to latest log */ | 193 | /* create a symlink pointing to latest log */ |
| 194 | symlink(b, target_filename); | 194 | if (symlink(b, target_filename) < 0) { |
| 195 | fprintf(stderr, "Can't create symlink to %s\n", b); | ||
| 196 | } | ||
| 195 | #endif | 197 | #endif |
| 196 | 198 | ||
| 197 | if (!keep_crash_reports) | 199 | if (!keep_crash_reports) |
