From: Richard Mudgett Date: Fri, 19 Feb 2010 18:07:26 +0000 (+0000) Subject: Restore fwrite() line so ast_expr2f.c can compile. X-Git-Tag: 1.6.0.26-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ab6e1116d9c445b85635ad8674281756b96256d;p=thirdparty%2Fasterisk.git Restore fwrite() line so ast_expr2f.c can compile. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@247919 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/ast_expr2f.c b/main/ast_expr2f.c index 98db719aef..b05f97e7e1 100644 --- a/main/ast_expr2f.c +++ b/main/ast_expr2f.c @@ -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,