From 24e37ddf57bac6a1c9786d50abbe3a1982930382 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 23 Dec 2012 23:30:57 +0100 Subject: ipodpatcher: move sectorbuf pointer into ipod_t structure. The ipod_t structure holds all relevant information for ipodpatcher. Put the global ipod_sectorbuf pointer into it as well. Allows the Rockbox Utility Ipod class to be instanciated multiple times since each instance can now have its own buffer. Change-Id: Ie319cbadbc20c367ceadba9a46b4dc34b57a79a7 --- rbutil/ipodpatcher/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rbutil/ipodpatcher/main.c') diff --git a/rbutil/ipodpatcher/main.c b/rbutil/ipodpatcher/main.c index 2d4ad3a796..12c38de704 100644 --- a/rbutil/ipodpatcher/main.c +++ b/rbutil/ipodpatcher/main.c @@ -164,7 +164,7 @@ int main(int argc, char* argv[]) return 1; } - if (ipod_alloc_buffer(&ipod_sectorbuf,BUFFER_SIZE) < 0) { + if (ipod_alloc_buffer(&ipod,BUFFER_SIZE) < 0) { fprintf(stderr,"Failed to allocate memory buffer\n"); } -- cgit v1.2.3