diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-12-23 23:36:00 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-01 15:06:34 +0100 |
commit | 9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8 (patch) | |
tree | 1c884e4db52c2d365095c281e63956f909691226 /rbutil/sansapatcher/main.c | |
parent | 24e37ddf57bac6a1c9786d50abbe3a1982930382 (diff) | |
download | rockbox-9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8.tar.gz rockbox-9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8.zip |
sansapatcher: move sectorbuf pointer into sansa_t structure.
Similar as the ipod_t structure for ipodpatcher the sansa_t structure holds all
relevant information for sansapatcher. Put the global sansa_sectorbuf pointer
into it as well.
Change-Id: Iad08ef6aafc49609c3d0d556914246f230ee0179
Diffstat (limited to 'rbutil/sansapatcher/main.c')
-rw-r--r-- | rbutil/sansapatcher/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/main.c b/rbutil/sansapatcher/main.c index 985e1b7262..743ebfedbd 100644 --- a/rbutil/sansapatcher/main.c +++ b/rbutil/sansapatcher/main.c | |||
@@ -155,7 +155,7 @@ int main(int argc, char* argv[]) | |||
155 | return 1; | 155 | return 1; |
156 | } | 156 | } |
157 | 157 | ||
158 | if (sansa_alloc_buffer(&sansa_sectorbuf,BUFFER_SIZE) < 0) { | 158 | if (sansa_alloc_buffer(&sansa, BUFFER_SIZE) < 0) { |
159 | fprintf(stderr,"Failed to allocate memory buffer\n"); | 159 | fprintf(stderr,"Failed to allocate memory buffer\n"); |
160 | } | 160 | } |
161 | 161 | ||