]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Restore fwrite() line so ast_expr2f.c can compile.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 19 Feb 2010 18:07:26 +0000 (18:07 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 19 Feb 2010 18:07:26 +0000 (18:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@247919 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/ast_expr2f.c

index 98db719aef48b7ed4a130427007fff868b959ffd..b05f97e7e13c81307683c8e785fde594ea42871b 100644 (file)
@@ -743,7 +743,7 @@ static int input (yyscan_t yyscanner );
 /* 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,