diff options
Diffstat (limited to 'apps/examples/wgetjson/wgetjson_main.c')
-rw-r--r-- | apps/examples/wgetjson/wgetjson_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/wgetjson/wgetjson_main.c b/apps/examples/wgetjson/wgetjson_main.c index ac7062577..9896a1e1c 100644 --- a/apps/examples/wgetjson/wgetjson_main.c +++ b/apps/examples/wgetjson/wgetjson_main.c @@ -289,7 +289,11 @@ static int wgetjson_json_parse(char *text) * Name: wgetjson_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int wgetjson_main(int argc, char *argv[]) +#endif { char *buffer = NULL; int buffer_len = 512; |