repositories
/
mTask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c89399
)
iso for style
author
Mart Lubbers
<mart@martlubbers.net>
Mon, 6 Feb 2017 17:04:51 +0000
(18:04 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Mon, 6 Feb 2017 17:04:51 +0000
(18:04 +0100)
client/task.c
patch
|
blob
|
history
diff --git
a/client/task.c
b/client/task.c
index
4ac8ce5
..
3d9a644
100644
(file)
--- a/
client/task.c
+++ b/
client/task.c
@@
-19,6
+19,7
@@
void task_init(void)
int task_register(void)
{
uint8_t ct;
+ uint16_t i;
for(ct = 0; ct<MAXTASKS; ct++)
if(!tasks[ct].used)
@@
-37,7
+38,7
@@
int task_register(void)
if(tasks[ct].tlen > MAXTASKSIZE)
die("Task is too long: %d", tasks[ct].tlen);
//Read task bytecode
- for(
unsigned int
i = 0; i<tasks[ct].tlen; i++){
+ for(i = 0; i<tasks[ct].tlen; i++){
tasks[ct].bc[i] = read_byte();
// debug("t[][%i]: 0x%02x %d", i,
// tasks[ct].bc[i], tasks[ct].bc[i]);