diff options
| author | Franklin Wei <git@fwei.tk> | 2017-05-17 17:42:30 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2017-05-17 17:42:30 -0400 |
| commit | 7b6f34a4561c544739c4271ecc27c1d5a7b0af7d (patch) | |
| tree | 1311ec7e486316e2207e0fb423743a1116f6dbed /apps/plugins/puzzles/src | |
| parent | 001860ce7856e20b890d8adf425c899540a5d5d3 (diff) | |
| download | rockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.zip rockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.tar.gz rockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.tar.bz2 rockbox-7b6f34a4561c544739c4271ecc27c1d5a7b0af7d.tar.xz | |
puzzles: fix building
- disables help on c200v2
- renames conflicting function
Change-Id: I0c4ff1bb40e7e3cafd0170090f22b80bf0656741
Diffstat (limited to 'apps/plugins/puzzles/src')
| -rw-r--r-- | apps/plugins/puzzles/src/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/src/misc.c b/apps/plugins/puzzles/src/misc.c index c721016..9904aee 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, game_mkhighlight_specific(fe, ret, background, highlight, lowlight); } -static void memswap(void *av, void *bv, int size) +static void swap_regions(void *av, void *bv, int size) { char tmpbuf[512]; char *a = av, *b = bv; @@ -225,7 +225,7 @@ void shuffle(void *array, int nelts, int eltsize, random_state *rs) for (i = nelts; i-- > 1 ;) { int j = random_upto(rs, i+1); if (j != i) - memswap(carray + eltsize * i, carray + eltsize * j, eltsize); + swap_regions(carray + eltsize * i, carray + eltsize * j, eltsize); } } |