Ignore:
Timestamp:
2018-01-04T20:50:53Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
58e4d85
Parents:
c81d4f1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
Message:

(optional) Remove EXIT_RC().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/wifi_supplicant/wifi_supplicant.c

    rc81d4f1 r3b47db6  
    293293        if (argc == 2) {
    294294                if (!str_cmp(argv[1], "list"))
    295                         return EXIT_RC(wifi_list());
     295                        return wifi_list();
    296296        } else if (argc > 2) {
    297297                uint32_t index;
     
    300300                        printf("%s: Invalid argument.\n", NAME);
    301301                        print_syntax();
    302                         return EXIT_RC(EINVAL);
     302                        return EINVAL;
    303303                }
    304304               
     
    309309                                        now = true;
    310310                       
    311                         return EXIT_RC(wifi_scan(index, now));
     311                        return wifi_scan(index, now);
    312312                } else if (!str_cmp(argv[1], "connect")) {
    313313                        char *pass = NULL;
     
    316316                                        pass = argv[4];
    317317                               
    318                                 return EXIT_RC(wifi_connect(index, argv[3], pass));
     318                                return wifi_connect(index, argv[3], pass);
    319319                        }
    320320                } else if (!str_cmp(argv[1], "disconnect"))
    321                         return EXIT_RC(wifi_disconnect(index));
     321                        return wifi_disconnect(index);
    322322        }
    323323       
Note: See TracChangeset for help on using the changeset viewer.