aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-05 17:04:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-05 17:04:51 +0000
commit76222ab30ea59b8dd39eacf6c4a78c3ad2c41730 (patch)
treeeac5ae92aedc1e7bd4469e1ac9bb64b486cd476d /include/asterisk/frame.h
parent00b2c2703f1124c0b57b6994ec466b524f3d74a9 (diff)
don't define a functioning returning an int inside of a do{...}while(0) (bug #3865)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5409 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/frame.h')
-rwxr-xr-xinclude/asterisk/frame.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 7be514610..a90d2bbb6 100755
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -362,13 +362,13 @@ extern void ast_smoother_free(struct ast_smoother *s);
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);