summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/plasma.c4
-rw-r--r--apps/plugins/rockboy/loader.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 4359e6e8b6..e824593850 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -155,8 +155,8 @@ int main(void)
155 plasma_frequency = 1; 155 plasma_frequency = 1;
156 int action, x, y; 156 int action, x, y;
157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; 157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0;
158 long last_tick = *rb->current_tick;
159#ifdef HAVE_ADJUSTABLE_CPU_FREQ 158#ifdef HAVE_ADJUSTABLE_CPU_FREQ
159 long last_tick = *rb->current_tick;
160 int delay; 160 int delay;
161 int cumulated_lag = 0; 161 int cumulated_lag = 0;
162#endif 162#endif
@@ -257,10 +257,10 @@ int main(void)
257 if (--cumulated_lag <= 0) /* slow decrease */ 257 if (--cumulated_lag <= 0) /* slow decrease */
258 rb->cpu_boost(boosted = false); 258 rb->cpu_boost(boosted = false);
259 } 259 }
260 last_tick = *rb->current_tick;
260#endif 261#endif
261 action = pluginlib_getaction(0, plugin_contexts, 262 action = pluginlib_getaction(0, plugin_contexts,
262 ARRAYLEN(plugin_contexts)); 263 ARRAYLEN(plugin_contexts));
263 last_tick = *rb->current_tick;
264 264
265 switch(action) 265 switch(action)
266 { 266 {
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c
index d843ba8a60..6065cf2898 100644
--- a/apps/plugins/rockboy/loader.c
+++ b/apps/plugins/rockboy/loader.c
@@ -124,7 +124,6 @@ static void initmem(void *mem, int size)
124 124
125static byte *loadfile(int fd, int *len) 125static byte *loadfile(int fd, int *len)
126{ 126{
127 int c;
128 byte *d; 127 byte *d;
129 128
130 *len=lseek(fd,0,SEEK_END); 129 *len=lseek(fd,0,SEEK_END);
@@ -136,7 +135,7 @@ static byte *loadfile(int fd, int *len)
136 } 135 }
137 lseek(fd,0,SEEK_SET); 136 lseek(fd,0,SEEK_SET);
138 137
139 c = read(fd, d, *len); 138 read(fd, d, *len);
140 139
141 return d; 140 return d;
142} 141}