summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/misc.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-05-17 17:42:30 -0400
committerFranklin Wei <git@fwei.tk>2017-05-17 17:42:30 -0400
commit7b6f34a4561c544739c4271ecc27c1d5a7b0af7d (patch)
tree1311ec7e486316e2207e0fb423743a1116f6dbed /apps/plugins/puzzles/src/misc.c
parent001860ce7856e20b890d8adf425c899540a5d5d3 (diff)
downloadrockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.tar.gz
rockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.zip
puzzles: fix building
- disables help on c200v2 - renames conflicting function Change-Id: I0c4ff1bb40e7e3cafd0170090f22b80bf0656741
Diffstat (limited to 'apps/plugins/puzzles/src/misc.c')
-rw-r--r--apps/plugins/puzzles/src/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/src/misc.c b/apps/plugins/puzzles/src/misc.c
index c721016563..9904aee75e 100644
--- a/apps/plugins/puzzles/src/misc.c
+++ b/apps/plugins/puzzles/src/misc.c
@@ -201,7 +201,7 @@ void game_mkhighlight(frontend *fe, float *ret,
201 game_mkhighlight_specific(fe, ret, background, highlight, lowlight); 201 game_mkhighlight_specific(fe, ret, background, highlight, lowlight);
202} 202}
203 203
204static void memswap(void *av, void *bv, int size) 204static void swap_regions(void *av, void *bv, int size)
205{ 205{
206 char tmpbuf[512]; 206 char tmpbuf[512];
207 char *a = av, *b = bv; 207 char *a = av, *b = bv;
@@ -225,7 +225,7 @@ void shuffle(void *array, int nelts, int eltsize, random_state *rs)
225 for (i = nelts; i-- > 1 ;) { 225 for (i = nelts; i-- > 1 ;) {
226 int j = random_upto(rs, i+1); 226 int j = random_upto(rs, i+1);
227 if (j != i) 227 if (j != i)
228 memswap(carray + eltsize * i, carray + eltsize * j, eltsize); 228 swap_regions(carray + eltsize * i, carray + eltsize * j, eltsize);
229 } 229 }
230} 230}
231 231