Commit 2e8dca6e authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

fix spg_test.c build warnings

parent 3159a6a5
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
struct block { struct block {
char *name; char *name;
struct controller_block *(*create)(char *); struct controller_block *(*create)(char *name, va_list ap);
}; };
struct param_misc { struct param_misc {
...@@ -81,7 +81,7 @@ int main(int argc, char **argv) ...@@ -81,7 +81,7 @@ int main(int argc, char **argv)
/* Create blocks */ /* Create blocks */
for (i = 0; controller_blocks[i].name; i++) { for (i = 0; controller_blocks[i].name; i++) {
block = controller_blocks[i].create(controller_blocks[i].name); block = controller_blocks[i].create(controller_blocks[i].name, NULL);
if (!block) if (!block)
printf("Could not create block %s\n", printf("Could not create block %s\n",
controller_blocks[i].name); controller_blocks[i].name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment