diff options
Diffstat (limited to 'apps/plugins/puzzles/src/misc.c')
-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 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 | ||
204 | static void memswap(void *av, void *bv, int size) | 204 | static 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 | ||