FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/smsend_multmain.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 | f8c693d16978 |
children | 2969032bdfac |
comparison
equal
deleted
inserted
replaced
466:5bcf12be0834 | 467:dc2fd8e6f42c |
---|---|
106 { | 106 { |
107 if (initdone) | 107 if (initdone) |
108 return(0); | 108 return(0); |
109 atinterf_init(); | 109 atinterf_init(); |
110 /* enable verbose error messages */ | 110 /* enable verbose error messages */ |
111 atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0); | 111 atinterf_exec_cmd_needok("AT+CMEE=2", (char *) 0, (void *) 0); |
112 if (text_mode) | 112 if (text_mode) |
113 prep_for_text_mode(); | 113 prep_for_text_mode(); |
114 else | 114 else |
115 prep_for_pdu_mode(); | 115 prep_for_pdu_mode(); |
116 if (sms_write_mode == 0) | 116 if (sms_write_mode == 0) |
117 atinterf_exec_cmd_needok("AT+CMMS=1", 0, 0); | 117 atinterf_exec_cmd_needok("AT+CMMS=1", (char *) 0, (void *) 0); |
118 initdone = 1; | 118 initdone = 1; |
119 return(1); | 119 return(1); |
120 } | 120 } |
121 | 121 |
122 process_msg_gsm7() | 122 process_msg_gsm7() |
190 process_msg_gsm7(); | 190 process_msg_gsm7(); |
191 } | 191 } |
192 if (!initdone) | 192 if (!initdone) |
193 exit(0); | 193 exit(0); |
194 if (sms_write_mode == 0) | 194 if (sms_write_mode == 0) |
195 atinterf_exec_cmd_needok("AT+CMMS=0", 0, 0); | 195 atinterf_exec_cmd_needok("AT+CMMS=0", (char *) 0, (void *) 0); |
196 if (sms_write_mode == 1) | 196 if (sms_write_mode == 1) |
197 sendafterwr_process(); | 197 sendafterwr_process(); |
198 exit(0); | 198 exit(0); |
199 } | 199 } |