diff options
| author | 2014-06-30 11:54:25 -0400 | |
|---|---|---|
| committer | 2014-08-22 07:30:42 +0200 | |
| commit | 0e16e0a1ddeca038bb00b1dd6f1fb799a47e4b7f (patch) | |
| tree | 8456edf3d355c9dd9c46d9b937cf3e0aef69a06b /dev/filerelaytest.c | |
| parent | 56fc97c5f344cb4fc88e40e3442f7fa74b5c7003 (diff) | |
| download | libimobiledevice-0e16e0a1ddeca038bb00b1dd6f1fb799a47e4b7f.tar.gz libimobiledevice-0e16e0a1ddeca038bb00b1dd6f1fb799a47e4b7f.tar.bz2 | |
Removed use of err() for Windows compatibility.
Diffstat (limited to 'dev/filerelaytest.c')
| -rw-r--r-- | dev/filerelaytest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c index 2afa6b6..f045620 100644 --- a/dev/filerelaytest.c +++ b/dev/filerelaytest.c | |||
| @@ -18,9 +18,10 @@ | |||
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <err.h> | 21 | #include <errno.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include <string.h> | ||
| 24 | #include <libimobiledevice/libimobiledevice.h> | 25 | #include <libimobiledevice/libimobiledevice.h> |
| 25 | #include <libimobiledevice/lockdown.h> | 26 | #include <libimobiledevice/lockdown.h> |
| 26 | #include <libimobiledevice/file_relay.h> | 27 | #include <libimobiledevice/file_relay.h> |
| @@ -102,7 +103,8 @@ int main(int argc, char **argv) | |||
| 102 | char buf[4096]; | 103 | char buf[4096]; |
| 103 | FILE *f = fopen("dump.cpio.gz", "wb"); | 104 | FILE *f = fopen("dump.cpio.gz", "wb"); |
| 104 | if (!f) { | 105 | if (!f) { |
| 105 | err(EXIT_FAILURE, "dump.cpio.gz"); | 106 | fprintf(stderr, "dump.cpio.gz: %s\n", strerror(errno)); |
| 107 | return EXIT_FAILURE; | ||
| 106 | } | 108 | } |
| 107 | setbuf(stdout, NULL); | 109 | setbuf(stdout, NULL); |
| 108 | printf("receiving "); | 110 | printf("receiving "); |
