Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
dvb
> dvb-apps-various.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dvb-apps-various.diff of Package dvb (Revision 2)
Currently displaying revision
2
,
show latest
--- lib/libdvben50221/asn_1.c 22 Jun 2005 15:55:54 -0000 1.1 +++ lib/libdvben50221/asn_1.c 29 Sep 2005 09:15:37 -0000 @@ -61,7 +61,7 @@ while (temp) { temp = temp >> 8; - *asn_1_words++; + (*asn_1_words)++; } if ((asn_1_array = (uint8_t *) malloc(*asn_1_words * sizeof (uint8_t))) == NULL) { printf("%s: Memory allocation failed.\n", __FUNCTION__); @@ -70,7 +70,7 @@ printf("%s: Allocated %d bytes.\n", __FUNCTION__, *asn_1_words); while (length) { - asn_1_array[*asn_1_words--] = length & 0xff; + asn_1_array[(*asn_1_words)--] = length & 0xff; length = length >> 8; } return asn_1_array; --- lib/libdvben50221/en50221_encode.c 27 Jun 2005 21:36:18 -0000 1.3 +++ lib/libdvben50221/en50221_encode.c 29 Sep 2005 09:15:37 -0000 @@ -46,7 +46,7 @@ uint16_t en50221_encode_descriptor(struct ca_msg * ca_msg, struct ca_descriptor * desc, uint16_t pos) { - uint8_t i; + uint8_t i = 0; uint16_t temp = 0, private_bytes = 0; temp = pos; --- libs/libdvb2/notifier.c 17 Jul 2005 03:16:48 -0000 1.1 +++ libs/libdvb2/notifier.c 29 Sep 2005 09:15:37 -0000 @@ -86,15 +86,14 @@ */ int dvb_revent(struct dvb * dvb, int fd, short revents) { - struct dvb_notifier * notifier; int i; if (revents == 0) return 0; for (i = 0; i <= dvb->nb_notifiers; ++i) { - if (dvb->notifiers.ptrs[i] == NULL || - dvb->pollfds[i].fd != fd) + struct dvb_notifier * notifier = dvb->notifiers.ptrs[i]; + if (notifier == NULL || dvb->pollfds[i].fd != fd) continue; dvb->pollfds[i].revents = revents; --- libs/libsi2/section_buf.c 22 Jul 2005 19:51:27 -0000 1.3 +++ libs/libsi2/section_buf.c 29 Sep 2005 09:15:37 -0000 @@ -103,7 +103,7 @@ uint8_t* payload, int len, int pdu_start) { - int used; + int used = 0; int tmp; /* sanity catch */ --- test/test_av.c 17 Jan 2004 16:59:46 -0000 1.1 +++ test/test_av.c 29 Sep 2005 09:15:37 -0000 @@ -429,7 +429,7 @@ return 0; } - printf("read: %d bytes\n",read(sifd,sp.iFrame,sp.size)); + printf("read: %zd bytes\n",read(sifd,sp.iFrame,sp.size)); if (ioctl(fd, VIDEO_STILLPICTURE, &sp) == -1) perror("VIDEO_STILLPICTURE"); return 0; --- test/test_stillimage.c 17 Jan 2004 16:59:46 -0000 1.1 +++ test/test_stillimage.c 29 Sep 2005 09:15:37 -0000 @@ -82,7 +82,7 @@ return -1; } - printf ("read: %d bytes\n", read(filefd, sp.iFrame, sp.size)); + printf ("read: %zd bytes\n", read(filefd, sp.iFrame, sp.size)); close(filefd); if ((ioctl(fd, VIDEO_STILLPICTURE, &sp) < 0)) { --- util/scan/diseqc.c 17 Jan 2004 16:59:46 -0000 1.1 +++ util/scan/diseqc.c 29 Sep 2005 09:15:37 -0000 @@ -37,9 +37,6 @@ ; } -#define printf(x...) - - int diseqc_send_msg (int fd, fe_sec_voltage_t v, struct diseqc_cmd **cmd, fe_sec_tone_mode_t t, fe_sec_mini_cmd_t b) {