diff uptools/atcmd/smsend_pduin.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 3eb92855f7b9
children
line wrap: on
line diff
--- a/uptools/atcmd/smsend_pduin.c	Mon Feb 11 05:50:45 2019 +0000
+++ b/uptools/atcmd/smsend_pduin.c	Mon Feb 11 22:17:46 2019 +0000
@@ -61,11 +61,11 @@
 		return(0);
 	atinterf_init();
 	/* enable verbose error messages */
-	atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0);
+	atinterf_exec_cmd_needok("AT+CMEE=2", (char *) 0, (void *) 0);
 	/* set PDU mode */
 	prep_for_pdu_mode();
 	if (sms_write_mode == 0 && more_input()) {
-		atinterf_exec_cmd_needok("AT+CMMS=1", 0, 0);
+		atinterf_exec_cmd_needok("AT+CMMS=1", (char *) 0, (void *) 0);
 		cmms_done = 1;
 	}
 	initdone = 1;
@@ -109,7 +109,7 @@
 	if (!initdone)
 		exit(0);
 	if (cmms_done)
-		atinterf_exec_cmd_needok("AT+CMMS=0", 0, 0);
+		atinterf_exec_cmd_needok("AT+CMMS=0", (char *) 0, (void *) 0);
 	if (sms_write_mode == 1)
 		sendafterwr_process();
 	exit(0);