summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/puzzles/SOURCES.games2
-rw-r--r--apps/plugins/puzzles/misc.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/SOURCES.games b/apps/plugins/puzzles/SOURCES.games
index 6ecfdc76f4..d228138528 100644
--- a/apps/plugins/puzzles/SOURCES.games
+++ b/apps/plugins/puzzles/SOURCES.games
@@ -19,7 +19,9 @@ net.c
19netslide.c 19netslide.c
20/*palisade.c*/ 20/*palisade.c*/
21pattern.c 21pattern.c
22#if PLUGIN_BUFFER_SIZE > 0x20000
22pearl.c 23pearl.c
24#endif
23pegs.c 25pegs.c
24range.c 26range.c
25rect.c 27rect.c
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