[Asterisk-cvs] asterisk/include/asterisk frame.h,1.35.2.2,1.35.2.3

russell at lists.digium.com russell at lists.digium.com
Tue Apr 5 12:15:20 CDT 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv8590/include/asterisk

Modified Files:
      Tag: v1-0
	frame.h 
Log Message:
don't define a functioning returning an int inside of a do{...}while(0) (bug #3865)


Index: frame.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/frame.h,v
retrieving revision 1.35.2.2
retrieving revision 1.35.2.3
diff -u -d -r1.35.2.2 -r1.35.2.3
--- frame.h	5 Apr 2005 07:10:06 -0000	1.35.2.2
+++ frame.h	5 Apr 2005 17:08:05 -0000	1.35.2.3
@@ -389,13 +389,13 @@
 extern void ast_smoother_reset(struct ast_smoother *s, int bytes);
 extern int __ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f, int swap);
 extern struct ast_frame *ast_smoother_read(struct ast_smoother *s);
-#define ast_smoother_feed(s,f) do { __ast_smoother_feed(s, f, 0); } while(0)
+#define ast_smoother_feed(s,f) __ast_smoother_feed(s, f, 0)
 #if __BYTE_ORDER == __LITTLE_ENDIAN
-#define ast_smoother_feed_be(s,f) do { __ast_smoother_feed(s, f, 1); } while(0)
-#define ast_smoother_feed_le(s,f) do { __ast_smoother_feed(s, f, 0); } while(0)
+#define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 1)
+#define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 0)
 #else
-#define ast_smoother_feed_be(s,f) do { __ast_smoother_feed(s, f, 0); } while(0)
-#define ast_smoother_feed_le(s,f) do { __ast_smoother_feed(s, f, 1); } while(0)
+#define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 0)
+#define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 1)
 #endif
 
 extern void ast_frame_dump(char *name, struct ast_frame *f, char *prefix);




More information about the svn-commits mailing list