summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/misc.c')
-rw-r--r--apps/plugins/puzzles/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/misc.c b/apps/plugins/puzzles/misc.c
index caf52cd520..cd5c393b95 100644
--- a/apps/plugins/puzzles/misc.c
+++ b/apps/plugins/puzzles/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 memswap_puzzles(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 memswap_puzzles(carray + eltsize * i, carray + eltsize * j, eltsize);
229 } 229 }
230} 230}
231 231