fix compiler warning

This commit is contained in:
max10
2014-12-04 19:49:18 +01:00
parent e05b1f5b85
commit da66fc3db5
2 changed files with 4 additions and 4 deletions

View File

@@ -316,7 +316,7 @@ void eDVBCISession::receiveData(tSlot *slot, const unsigned char *ptr, size_t le
while (len > 0) while (len > 0)
{ {
int alen; int alen;
const unsigned char *tag = pkt; const unsigned char *stag = pkt;
pkt += 3; // tag pkt += 3; // tag
len -= 3; len -= 3;
hlen = parseLengthField(pkt, alen); hlen = parseLengthField(pkt, alen);
@@ -331,9 +331,9 @@ void eDVBCISession::receiveData(tSlot *slot, const unsigned char *ptr, size_t le
alen = len; alen = len;
} }
printf("1. Call receivedAPDU tag = 0x%2x, len = %d\n", (int) tag, alen); printf("1. Call receivedAPDU tag = 0x%2x, len = %d\n", (int) stag, alen);
if (session->receivedAPDU(tag, pkt, alen)) if (session->receivedAPDU(stag, pkt, alen))
session->action = 1; session->action = 1;
pkt += alen; pkt += alen;
len -= alen; len -= alen;

View File

@@ -494,7 +494,7 @@ void cVideo::ShowPicture(const char * fname, const char *_destname)
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0) if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__); lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
bool seq_end_avail = false; bool seq_end_avail = false;
size_t pos=0; off_t pos=0;
unsigned char *iframe = (unsigned char *)malloc((st.st_size < 8192) ? 8192 : st.st_size); unsigned char *iframe = (unsigned char *)malloc((st.st_size < 8192) ? 8192 : st.st_size);
if (! iframe) if (! iframe)
{ {