summaryrefslogtreecommitdiffstats
path: root/utils/MTP/beastpatcher/main.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 14:03:31 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 14:03:31 +0000
commit1c83e6ab900706a4d5d7dad631cae2305fa39f11 (patch)
tree824d1ac356737842d3ab692efa04d66faf04a9df /utils/MTP/beastpatcher/main.c
parentef4e8b2d81ac298844acf9f0f8b43b1e3145a939 (diff)
downloadrockbox-1c83e6ab900706a4d5d7dad631cae2305fa39f11.tar.gz
rockbox-1c83e6ab900706a4d5d7dad631cae2305fa39f11.tar.bz2
rockbox-1c83e6ab900706a4d5d7dad631cae2305fa39f11.zip
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.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[])
{
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();