[libpri-commits] dhubbard: branch dhubbard/bbfcfm r1050 - /team/dhubbard/bbfcfm/
SVN commits to the libpri project
libpri-commits at lists.digium.com
Mon Aug 31 14:22:19 CDT 2009
Author: dhubbard
Date: Mon Aug 31 14:22:16 2009
New Revision: 1050
URL: http://svn.asterisk.org/svn-view/libpri?view=rev&rev=1050
Log:
try to shutup reviewboard's red-blockiness ... mostly whitespace changes
Modified:
team/dhubbard/bbfcfm/pri_q931.h
team/dhubbard/bbfcfm/q931.c
Modified: team/dhubbard/bbfcfm/pri_q931.h
URL: http://svn.asterisk.org/svn-view/libpri/team/dhubbard/bbfcfm/pri_q931.h?view=diff&rev=1050&r1=1049&r2=1050
==============================================================================
--- team/dhubbard/bbfcfm/pri_q931.h (original)
+++ team/dhubbard/bbfcfm/pri_q931.h Mon Aug 31 14:22:16 2009
@@ -75,7 +75,7 @@
#define Q931_PROTOCOL_DISCRIMINATOR 0x08
#define GR303_PROTOCOL_DISCRIMINATOR 0x4f
-/* AT&T Maintenance Protocol Discriminators */
+/* AT&T Maintenance Protocol Discriminator */
#define MAINTENANCE_PROTOCOL_DISCRIMINATOR_1 0x03
/* National Maintenance Protocol Discriminator */
#define MAINTENANCE_PROTOCOL_DISCRIMINATOR_2 0x43
Modified: team/dhubbard/bbfcfm/q931.c
URL: http://svn.asterisk.org/svn-view/libpri/team/dhubbard/bbfcfm/q931.c?view=diff&rev=1050&r1=1049&r2=1050
==============================================================================
--- team/dhubbard/bbfcfm/q931.c (original)
+++ team/dhubbard/bbfcfm/q931.c Mon Aug 31 14:22:16 2009
@@ -2885,9 +2885,9 @@
max = ARRAY_LEN(national_maintenance_msgs);
}
- for ( x = 0; x < max; x++ ) {
+ for ( x = 0; x < max; x++ ) {
if ( m[x].msgnum == msg ) {
- return m[x].name;
+ return m[x].name;
}
}
return "Unknown Message Type";
@@ -3390,7 +3390,7 @@
c->channelno = channel;
c->chanflags |= FLAG_EXCLUSIVE;
c->changestatus = changestatus;
-
+
if ( ctrl->switchtype == PRI_SWITCH_NI2) {
pd = MAINTENANCE_PROTOCOL_DISCRIMINATOR_2;
mt = NATIONAL_SERVICE;
@@ -4108,11 +4108,11 @@
return -1;
}
/* SERVICE messages are a superset of messages that can take b-channels
- * or entire d-channels in and out of service */
+ * or entire d-channels in and out of service */
switch(mh->msg) {
/* the ATT_SERVICE/ATT_SERVICE_ACKNOWLEDGE and NATIONAL_SERVICE/NATIONAL_SERVICE_ACKNOWLEDGE
- * are mirrors of each other so we only have to check for one type because they are pre-handled
- * the same way as each other */
+ * are mirrors of each other so we only have to check for one type because they are pre-handled
+ * the same way as each other */
case ATT_SERVICE:
case ATT_SERVICE_ACKNOWLEDGE:
c->channelno = -1;
@@ -4397,7 +4397,7 @@
}
}
}
-
+
/* Post handling */
if ((h->pd == MAINTENANCE_PROTOCOL_DISCRIMINATOR_1) || (h->pd == MAINTENANCE_PROTOCOL_DISCRIMINATOR_2)) {
res = post_handle_maintenance_message(ctrl, h->pd, mh, c);
@@ -4457,7 +4457,7 @@
}
return Q931_RES_HAVEEVENT;
}
-
+
pri_error(ctrl, "!! Don't know how to post-handle maintenance message type %d\n", mh->msg);
return -1;
}
More information about the libpri-commits
mailing list