[svn-commits] mattf: trunk r8 - in /trunk: mtp2.c mtp3.c ss7.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Aug 4 10:30:00 MST 2006
Author: mattf
Date: Fri Aug 4 12:30:00 2006
New Revision: 8
URL: http://svn.digium.com/view/libss7?rev=8&view=rev
Log:
Make sure we consistently use signed vs unsigned types
Modified:
trunk/mtp2.c
trunk/mtp3.c
trunk/ss7.c
Modified: trunk/mtp2.c
URL: http://svn.digium.com/view/libss7/trunk/mtp2.c?rev=8&r1=7&r2=8&view=diff
==============================================================================
--- trunk/mtp2.c (original)
+++ trunk/mtp2.c Fri Aug 4 12:30:00 2006
@@ -146,7 +146,7 @@
return 0;
}
-static void make_lssu(struct mtp2 *link, unsigned char *buf, int *size, int lssu_status)
+static void make_lssu(struct mtp2 *link, unsigned char *buf, unsigned int *size, int lssu_status)
{
struct mtp_su_head *head;
@@ -174,7 +174,7 @@
head->data[0] = lssu_status;
}
-static void make_fisu(struct mtp2 *link, unsigned char *buf, int *size, int nack)
+static void make_fisu(struct mtp2 *link, unsigned char *buf, unsigned int *size, int nack)
{
struct mtp_su_head *h;
@@ -203,7 +203,7 @@
int res = 0;
unsigned char *h;
unsigned char buf[64];
- int size;
+ unsigned int size;
struct ss7_msg *m = NULL;
if (link->tx_q)
Modified: trunk/mtp3.c
URL: http://svn.digium.com/view/libss7/trunk/mtp3.c?rev=8&r1=7&r2=8&view=diff
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Fri Aug 4 12:30:00 2006
@@ -10,7 +10,7 @@
#define mtp_error ss7_error
#define mtp_message ss7_message
-unsigned char testmessage[] = "2564286288";
+char testmessage[] = "2564286288";
#define mtp3_size(ss7) (((ss7)->switchtype == SS7_ITU) ? 5 : 8)
/* Routing label size */
Modified: trunk/ss7.c
URL: http://svn.digium.com/view/libss7/trunk/ss7.c?rev=8&r1=7&r2=8&view=diff
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Fri Aug 4 12:30:00 2006
@@ -269,7 +269,7 @@
int ss7_read(struct ss7 *ss7, int fd)
{
- char buf[1024];
+ unsigned char buf[1024];
int res;
int winner = -1;
int i;
More information about the svn-commits
mailing list