From 0af33919cbeef3909741b45b01af3a3de734ac12 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 6 Jun 2011 14:46:09 +0000 Subject: [PATCH] output first recommendation in parsable mode --- lint.h | 2 -- main.c | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lint.h b/lint.h index b097846..66c7201 100644 --- a/lint.h +++ b/lint.h @@ -54,7 +54,5 @@ unsigned char *freeview_huffman_to_string(const unsigned char *, uint, int is_bst(time_t); void bstise(time_t *); -#ifdef sun char *strcasestr (char *, char *); -#endif diff --git a/main.c b/main.c index 4a27619..dcf6ca3 100644 --- a/main.c +++ b/main.c @@ -176,6 +176,15 @@ dump(struct epg *epg __attribute__((unused)), else printf("\t"); + if (ds[PARSER_CRID_REC]) + { + struct descriptor *d = ds[PARSER_CRID_REC]; + printf("%.*s\t", d->content.d118.crids[0].cridlen, + d->content.d118.crids[0].crid); + } + else + printf("\t"); + printf("\n"); return; }