summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/filerelaytest.c6
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 ");