windows build add zap_callerid.c and tweak types.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@222 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2007-06-06 15:59:38 +00:00
parent edbf7bb713
commit 886482c168
3 changed files with 12 additions and 7 deletions

View File

@ -403,6 +403,10 @@
RelativePath="..\src\zap_buffer.c"
>
</File>
<File
RelativePath="..\src\zap_callerid.c"
>
</File>
<File
RelativePath="..\src\zap_config.c"
>

View File

@ -85,11 +85,11 @@ struct zap_fsk_data_state {
uint8_t init;
uint8_t *buf;
size_t bufsize;
int blen;
int bpos;
int dlen;
int ppos;
uint8_t checksum;
zap_size_t blen;
zap_size_t bpos;
zap_size_t dlen;
zap_size_t ppos;
int checksum;
};
typedef struct zap_fsk_data_state zap_fsk_data_state_t;

View File

@ -6,7 +6,7 @@
static void fsk_byte_handler (void *x, int data)
{
zap_fsk_data_state_t *state = (zap_fsk_data_state_t *) x;
uint8_t byte = data;
uint8_t byte = (uint8_t)data;
top:
@ -39,7 +39,8 @@ static void fsk_byte_handler (void *x, int data)
zap_status_t zap_fsk_data_parse(zap_fsk_data_state_t *state, zap_size_t *type, char **data, zap_size_t *len)
{
int i, sum = 0;
zap_size_t i;
int sum = 0;
top: