fix build
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@643 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
a950bcc30d
commit
7241056f70
|
@ -45,13 +45,13 @@ int main(int argc, char *argv[])
|
|||
zap_wait_flag_t flags = ZAP_READ;
|
||||
|
||||
if (zap_channel_wait(chan, &flags, -1) == ZAP_FAIL) {
|
||||
printf("wait FAIL! %lu [%s]\n", len, chan->last_error);
|
||||
printf("wait FAIL! %u [%s]\n", (unsigned)len, chan->last_error);
|
||||
}
|
||||
if (flags & ZAP_READ) {
|
||||
if (zap_channel_read(chan, buf, &len) == ZAP_SUCCESS) {
|
||||
printf("READ: %lu\n", len);
|
||||
printf("READ: %u\n", (unsigned)len);
|
||||
} else {
|
||||
printf("READ FAIL! %lu [%s]\n", len, chan->last_error);
|
||||
printf("READ FAIL! %u [%s]\n", (unsigned)len, chan->last_error);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -96,7 +96,7 @@ int main(int argc, char *argv[])
|
|||
zap_copy_string(str, sp, mlen+1);
|
||||
*(str+mlen) = '\0';
|
||||
zap_clean_string(str);
|
||||
printf("TYPE %lu (%s) LEN %lu VAL [%s]\n", type, zap_mdmf_type2str(type), mlen, str);
|
||||
printf("TYPE %u (%s) LEN %u VAL [%s]\n", (unsigned)type, zap_mdmf_type2str(type), (unsigned)mlen, str);
|
||||
}
|
||||
|
||||
zap_fsk_demod_destroy(&fsk_data);
|
||||
|
|
Loading…
Reference in New Issue