[asterisk-commits] rmudgett: branch 1.6.0 r247919 - /branches/1.6.0/main/ast_expr2f.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 19 12:07:29 CST 2010


Author: rmudgett
Date: Fri Feb 19 12:07:26 2010
New Revision: 247919

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247919
Log:
Restore fwrite() line so ast_expr2f.c can compile.

Modified:
    branches/1.6.0/main/ast_expr2f.c

Modified: branches/1.6.0/main/ast_expr2f.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.0/main/ast_expr2f.c?view=diff&rev=247919&r1=247918&r2=247919
==============================================================================
--- branches/1.6.0/main/ast_expr2f.c (original)
+++ branches/1.6.0/main/ast_expr2f.c Fri Feb 19 12:07:26 2010
@@ -743,7 +743,7 @@
 /* This used to be an fputs(), but since the string might contain NUL's,
  * we now use fwrite().
  */
-#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 #endif
 
 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,




More information about the asterisk-commits mailing list