[asterisk-commits] tilghman: trunk r178381 - /trunk/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 24 14:52:44 CST 2009


Author: tilghman
Date: Tue Feb 24 14:52:44 2009
New Revision: 178381

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178381
Log:
Apparently, a void cast doesn't override warn_unused_result.

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/asterisk.c?view=diff&rev=178381&r1=178380&r2=178381
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Tue Feb 24 14:52:44 2009
@@ -3302,7 +3302,10 @@
 			int cpipe[2];
 
 			/* PIPE signal ensures that astcanary dies when Asterisk dies */
-			(void) pipe(cpipe);
+			if (pipe(cpipe)) {
+				fprintf(stderr, "Unable to open pipe for canary process: %s\n", strerror(errno));
+				exit(1);
+			}
 			canary_pipe = cpipe[0];
 
 			snprintf(canary_filename, sizeof(canary_filename), "%s/alt.asterisk.canary.tweet.tweet.tweet", ast_config_AST_RUN_DIR);




More information about the asterisk-commits mailing list