update examples to match args change

This commit is contained in:
Carsten Haitzler 2018-03-11 04:46:47 +09:00
parent 566b5c3ee7
commit bc7793f138
2 changed files with 4 additions and 4 deletions

View File

@ -9,13 +9,13 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
{ {
Efl_Loop_Arguments *args = ev->info; Efl_Loop_Arguments *args = ev->info;
if (eina_array_count(args->argv) == 0) if (eina_array_count(args->argv) == 1)
{ {
printf("Hello World!\n"); printf("Hello World!\n");
} }
else else
{ {
printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 0)); printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 1));
} }
efl_exit(0); efl_exit(0);

View File

@ -18,9 +18,9 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
unsigned int i; unsigned int i;
int failed_count = -1; int failed_count = -1;
if (eina_array_count(args->argv) > 0) if (eina_array_count(args->argv) > 1)
{ {
test = eina_array_data_get(args->argv, 0); test = eina_array_data_get(args->argv, 1);
if (!strcmp(test, "--list")) if (!strcmp(test, "--list"))
{ {