normalize using unsigned char for buffers instead of mixed signed/unsigned in isdn code.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@68 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris committed 2007-05-21 18:53:58 +00:00
1 parent 23043a7e4d
commit bd9ea03197
6 files changed
+38 -33

No files matched your search

+2 -2
View File
@@ -85,7 +85,7 @@
typedef struct
{
char HDLCInQueue[Q921MAXHDLCSPACE];
unsigned char HDLCInQueue[Q921MAXHDLCSPACE];
unsigned char vs;
unsigned char vr;
int state;
@@ -95,7 +95,7 @@ void Q921Init();
void Q921SetHeaderSpace(int hspace);
void Q921SetTx21CB(int (*callback)(int dev, unsigned char *, int));
void Q921SetTx23CB(int (*callback)(int dev, unsigned char *, int));
int Q921QueueHDLCFrame(int trunk, char *b, int size);
int Q921QueueHDLCFrame(int trunk, unsigned char *b, int size);
int Q921Rx12(long trunk);
#endif
+6
View File
@@ -112,6 +112,12 @@
#include "stdio.h"
#ifdef _MSC_VER
/* warning C4100 : unreferenced formal parameter */
/* warning C4189 : local variable is initialized but not referenced TODO: This one should not be disabled*/
#pragma warning(disable:4100 4189)
#endif
/*****************************************************************************
Error Codes
+9 -9
View File
@@ -63,7 +63,7 @@ typedef struct _mfifo
int first; /* first out */
int last; /* last in + 1 */
int bsize; /* buffer size */
char *buf; /* ptr to start of buffer */
unsigned char *buf; /* ptr to start of buffer */
int ixsize; /* index size */
MINDEX ix[1]; /* message index */
}MFIFO;
@@ -71,13 +71,13 @@ typedef struct _mfifo
/*****************************************************************************
Function prototypes.
*****************************************************************************/
int MFIFOCreate(char *buf, int size, int index);
void MFIFOClear(char * buf);
int MFIFOGetLBOffset(char *buf);
int MFIFOGetFBOffset(char *buf);
void MFIFOWriteIX(char *buf, char *mes, int size, int ix, int off);
int MFIFOWriteMes(char *buf, char *mes, int size);
char * MFIFOGetMesPtr(char *buf, int *size);
void MFIFOKillNext(char *buf);
int MFIFOCreate(unsigned char *buf, int size, int index);
void MFIFOClear(unsigned char * buf);
int MFIFOGetLBOffset(unsigned char *buf);
int MFIFOGetFBOffset(unsigned char *buf);
void MFIFOWriteIX(unsigned char *buf, unsigned char *mes, int size, int ix, int off);
int MFIFOWriteMes(unsigned char *buf, unsigned char *mes, int size);
unsigned char * MFIFOGetMesPtr(unsigned char *buf, int *size);
void MFIFOKillNext(unsigned char *buf);
#endif