changeset 125:b424df830a82

Suppress error message for normal exit situation
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 10 Dec 2009 14:29:31 +0900
parents cc42d8607114
children 0ad5825eccdb
files freeDiameter/routing_dispatch.c
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/routing_dispatch.c	Thu Dec 10 14:15:04 2009 +0900
+++ b/freeDiameter/routing_dispatch.c	Thu Dec 10 14:29:31 2009 +0900
@@ -1014,14 +1014,13 @@
 		/* Get the next message from the queue */
 		{
 			int ret;
-			CHECK_FCT_DO( ret = fd_fifo_get ( queue, &msg ), 
-				{
-					if (ret == EPIPE)
-						/* The queue was destroyed, we are probably exiting */
-						goto end;
-					/* another error occurred */
-					goto fatal_error;
-				} );
+			ret = fd_fifo_get ( queue, &msg );
+			if (ret == EPIPE)
+				/* The queue was destroyed, we are probably exiting */
+				goto end;
+			
+			/* check if another error occurred */
+			CHECK_FCT_DO( ret, goto fatal_error );
 		}
 		
 		if (TRACE_BOOL(FULL)) {
"Welcome to our mercurial repository"