diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-06-13 14:03:31 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-06-13 14:03:31 +0000 |
commit | 1c83e6ab900706a4d5d7dad631cae2305fa39f11 (patch) | |
tree | 824d1ac356737842d3ab692efa04d66faf04a9df /utils/MTP/beastpatcher/main.c | |
parent | ef4e8b2d81ac298844acf9f0f8b43b1e3145a939 (diff) |
Refactor sendfirm functionality in beastpatcher and do some code police.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21271 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/beastpatcher/main.c')
-rw-r--r-- | utils/MTP/beastpatcher/main.c | 6 |
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[]) { int res; char yesno[4]; - struct mtp_info_t mtp_info; fprintf(stderr,"beastpatcher v" VERSION " - (C) 2009 by the Rockbox developers\n"); 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[]) } } else if((argc > 2) && ((strcmp(argv[1],"-s")==0) || (strcmp(argv[1],"--send")==0))) { - mtp_init(&mtp_info); - mtp_scan(&mtp_info); - res = mtp_send_file(&mtp_info, argv[2]); - mtp_finished(&mtp_info); + res = sendfirm(argv[2]); } else { print_usage(); |