summaryrefslogtreecommitdiff
path: root/utils/MTP/beastpatcher/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/MTP/beastpatcher/main.c')
-rw-r--r--utils/MTP/beastpatcher/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/MTP/beastpatcher/main.c b/utils/MTP/beastpatcher/main.c
index 1ccff72a79..6632b7ae8d 100644
--- a/utils/MTP/beastpatcher/main.c
+++ b/utils/MTP/beastpatcher/main.c
@@ -66,7 +66,6 @@ int main(int argc, char* argv[])
66{ 66{
67 int res; 67 int res;
68 char yesno[4]; 68 char yesno[4];
69 struct mtp_info_t mtp_info;
70 69
71 fprintf(stderr,"beastpatcher v" VERSION " - (C) 2009 by the Rockbox developers\n"); 70 fprintf(stderr,"beastpatcher v" VERSION " - (C) 2009 by the Rockbox developers\n");
72 fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n"); 71 fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n");
@@ -81,10 +80,7 @@ int main(int argc, char* argv[])
81 } 80 }
82 } 81 }
83 else if((argc > 2) && ((strcmp(argv[1],"-s")==0) || (strcmp(argv[1],"--send")==0))) { 82 else if((argc > 2) && ((strcmp(argv[1],"-s")==0) || (strcmp(argv[1],"--send")==0))) {
84 mtp_init(&mtp_info); 83 res = sendfirm(argv[2]);
85 mtp_scan(&mtp_info);
86 res = mtp_send_file(&mtp_info, argv[2]);
87 mtp_finished(&mtp_info);
88 } 84 }
89 else { 85 else {
90 print_usage(); 86 print_usage();