FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/atcmd.c @ 467:dc2fd8e6f42c
uptools/atcmd: null pointer passing fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Feb 2019 22:17:46 +0000 |
parents | 64dcbabd48ca |
children |
comparison
equal
deleted
inserted
replaced
466:5bcf12be0834 | 467:dc2fd8e6f42c |
---|---|
29 if (argc != optind + 1 || strncasecmp(argv[optind], "AT", 2)) { | 29 if (argc != optind + 1 || strncasecmp(argv[optind], "AT", 2)) { |
30 fprintf(stderr, "usage: %s [options] at-cmd\n", argv[0]); | 30 fprintf(stderr, "usage: %s [options] at-cmd\n", argv[0]); |
31 exit(ERROR_USAGE); | 31 exit(ERROR_USAGE); |
32 } | 32 } |
33 atinterf_init(); | 33 atinterf_init(); |
34 atinterf_exec_cmd(argv[optind], 0, int_callback); | 34 atinterf_exec_cmd(argv[optind], (char *) 0, int_callback); |
35 puts(at_response+1); | 35 puts(at_response+1); |
36 exit(0); | 36 exit(0); |
37 } | 37 } |