Revision
14835
Author
gmaruzz
Date
2009-09-13 06:08:11 -0500 (Sun, 13 Sep 2009)

Log Message

cellax: shut up warnings when compile on ubuntu Jaunty (check returns from pipe() and write() )

Modified Paths

Diff

Modified: freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c (14834 => 14835)


--- freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c	2009-09-12 21:53:38 UTC (rev 14834)
+++ freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c	2009-09-13 11:08:11 UTC (rev 14835)
@@ -913,7 +913,7 @@
 								int i;
 
 								NOTICA("incoming SMS message:>>>%s<<<\n", CELLIAX_P_LOG, tech_pvt->sms_message);
-								pipe(fd1);
+								res=pipe(fd1);
 								pid1 = fork();
 
 								if (pid1 == 0) {	//child
@@ -935,7 +935,7 @@
 								close(fd1[0]);	// close output pipe side
 								// write the msg on the pipe input
 								for (i = 0; i < strlen(tech_pvt->sms_message); i++) {
-									write(fd1[1], &tech_pvt->sms_message[i], 1);
+									res=write(fd1[1], &tech_pvt->sms_message[i], 1);
 								}
 								close(fd1[1]);	// close pipe input, let our program know we've finished
 							} else {