[libss7-commits] rmudgett: branch 1.0 r294 - in /branches/1.0: mtp2.c mtp3.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Sep 16 15:17:48 CDT 2011


Author: rmudgett
Date: Fri Sep 16 15:17:46 2011
New Revision: 294

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=294
Log:
Remove some redundant error messages.

Modified:
    branches/1.0/mtp2.c
    branches/1.0/mtp3.c

Modified: branches/1.0/mtp2.c
URL: http://svnview.digium.com/svn/libss7/branches/1.0/mtp2.c?view=diff&rev=294&r1=293&r2=294
==============================================================================
--- branches/1.0/mtp2.c (original)
+++ branches/1.0/mtp2.c Fri Sep 16 15:17:46 2011
@@ -586,7 +586,6 @@
 					ss7_schedule_del(link->master, &link->t1);
 					e = ss7_next_empty_event(link->master);
 					if (!e) {
-						mtp_error(link->master, "Could not queue event\n");
 						return -1;
 					}
 					e->gen.e = MTP2_LINK_UP;
@@ -602,7 +601,6 @@
 			if (newstate != MTP_INSERVICE) {
 				e = ss7_next_empty_event(link->master);
 				if (!e) {
-					mtp_error(link->master, "Could not queue event\n");
 					return -1;
 				}
 				e->gen.e = MTP2_LINK_DOWN;

Modified: branches/1.0/mtp3.c
URL: http://svnview.digium.com/svn/libss7/branches/1.0/mtp3.c?view=diff&rev=294&r1=293&r2=294
==============================================================================
--- branches/1.0/mtp3.c (original)
+++ branches/1.0/mtp3.c Fri Sep 16 15:17:46 2011
@@ -339,7 +339,6 @@
 		if (ss7->state != SS7_STATE_UP) {
 			e = ss7_next_empty_event(ss7);
 			if (!e) {
-				mtp_error(ss7, "Event queue full\n");
 				return -1;
 			}
 			e->e = SS7_EVENT_UP;
@@ -458,7 +457,6 @@
 		if (ss7->state != SS7_STATE_UP) {
 			e = ss7_next_empty_event(ss7);
 			if (!e) {
-				mtp_error(ss7, "Event queue full\n");
 				return -1;
 			}
 			e->e = SS7_EVENT_UP;
@@ -672,10 +670,10 @@
 	}
 	if (!linksup) {
 		ss7->state = SS7_STATE_DOWN;
-		ss7_event *e = ss7_next_empty_event(ss7);
-
+		ss7_event *e;
+
+		e = ss7_next_empty_event(ss7);
 		if (!e) {
-			ss7_error(ss7, "Event queue full!");
 			return;
 		}
 		e->e = SS7_EVENT_DOWN;




More information about the libss7-commits mailing list