From 524ed2ba1c37ddf32af20e4480304712d3a00662 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 29 May 2007 03:15:18 +0000 Subject: [PATCH] typos. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@175 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/isdn/Q931.c | 2 +- libs/openzap/src/isdn/Q931ie.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/openzap/src/isdn/Q931.c b/libs/openzap/src/isdn/Q931.c index 533e10c4df..191797d01d 100644 --- a/libs/openzap/src/isdn/Q931.c +++ b/libs/openzap/src/isdn/Q931.c @@ -714,7 +714,7 @@ static const char *q931_error_names[] = { }; -#define Q931_MAX_ERROR 29 +#define Q931_MAX_ERROR 30 const char *q931_error_to_name(q931_error_t error) { diff --git a/libs/openzap/src/isdn/Q931ie.c b/libs/openzap/src/isdn/Q931ie.c index ab3d683612..5c3ea473fc 100644 --- a/libs/openzap/src/isdn/Q931ie.c +++ b/libs/openzap/src/isdn/Q931ie.c @@ -3017,14 +3017,14 @@ L3INT Q931Uie_GenericDigits(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3U Octet ++; /* Octet 4*/ - if (pie->Type == 0) { /* BCD Even */ + if (pie->Encoding == 0) { /* BCD Even */ x = 0; do { pie->Digit[x++] = IBuf[Octet+Off] & 0x0f; pie->Digit[x++] = (IBuf[Octet+Off] >> 4) & 0x0f; Off++; } while (Q931MoreIE()); - } else if (pie->Type == 1) { /* BCD Odd */ + } else if (pie->Encoding == 1) { /* BCD Odd */ x = 0; do { pie->Digit[x++] = IBuf[Octet+Off] & 0x0f; @@ -3034,7 +3034,7 @@ L3INT Q931Uie_GenericDigits(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3U x++; Off++; } while (Q931MoreIE()); - } else if (pie->Type == 2) { /* IA5 */ + } else if (pie->Encoding == 2) { /* IA5 */ x = 0; do { pie->Digit[x++] = IBuf[Octet+Off] & 0x7f;