Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions util/atsc_epg/atsc_epg.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ static char separator[80];
void (*old_handler)(int);

struct atsc_string_buffer {
int buf_len;
int buf_pos;
size_t buf_len;
size_t buf_pos;
char *string;
};

struct atsc_event_info {
uint16_t id;
struct tm start;
struct tm end;
int title_pos;
int title_len;
int msg_pos;
int msg_len;
size_t title_pos;
size_t title_len;
size_t msg_pos;
size_t msg_len;
};

struct atsc_eit_section_info {
Expand Down Expand Up @@ -507,8 +507,8 @@ static int parse_message(struct atsc_channel_info *channel,
event->msg_pos = channel->msg_buf.buf_pos;
if(0 > atsc_text_segment_decode(seg,
(uint8_t **)&channel->msg_buf.string,
(size_t *)&channel->msg_buf.buf_len,
(size_t *)&channel->msg_buf.buf_pos)) {
&channel->msg_buf.buf_len,
&channel->msg_buf.buf_pos)) {
fprintf(stderr, "%s(): error calling "
"atsc_text_segment_decode()\n",
__FUNCTION__);
Expand Down Expand Up @@ -653,8 +653,8 @@ static int parse_events(struct atsc_channel_info *curr_info,
e_info->title_pos = curr_info->title_buf.buf_pos;
if(0 > atsc_text_segment_decode(seg,
(uint8_t **)&curr_info->title_buf.string,
(size_t *)&curr_info->title_buf.buf_len,
(size_t *)&curr_info->title_buf.buf_pos)) {
&curr_info->title_buf.buf_len,
&curr_info->title_buf.buf_pos)) {
fprintf(stderr, "%s(): error calling "
"atsc_text_segment_decode()\n",
__FUNCTION__);
Expand Down