From: User Decke Date: Sat, 4 Jan 2014 22:08:43 +0000 (+0000) Subject: misc: Consistently use hts_strdupa() instead of libc strdupa() which is Linux specific. X-Git-Tag: v4.1~2294^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b457730146f536ff4e41f5ddfed1750eb0d836b;p=thirdparty%2Ftvheadend.git misc: Consistently use hts_strdupa() instead of libc strdupa() which is Linux specific. --- diff --git a/src/epggrab/channel.c b/src/epggrab/channel.c index 974bcf381..8cdff425a 100644 --- a/src/epggrab/channel.c +++ b/src/epggrab/channel.c @@ -191,7 +191,7 @@ epggrab_channel_t *epggrab_channel_find epggrab_channel_t *ec; static epggrab_channel_t *skel = NULL; if (!skel) skel = calloc(1, sizeof(epggrab_channel_t)); - skel->id = strdupa(id); + skel->id = tvh_strdupa(id); /* Replace / with # */ // Note: this is a bit of a nasty fix for #1774, but will do for now diff --git a/src/idnode.c b/src/idnode.c index c260f5057..d9f45d168 100644 --- a/src/idnode.c +++ b/src/idnode.c @@ -488,7 +488,7 @@ idnode_cmp_sort case PT_STR: { int r; - const char *stra = strdupa(idnode_get_str(ina, sort->key) ?: ""); + const char *stra = tvh_strdupa(idnode_get_str(ina, sort->key) ?: ""); const char *strb = idnode_get_str(inb, sort->key); if (sort->dir == IS_ASC) r = strcmp(stra ?: "", strb ?: ""); diff --git a/src/input/mpegts/linuxdvb/linuxdvb_mux.c b/src/input/mpegts/linuxdvb/linuxdvb_mux.c index 0ef5ab90e..96cfb4243 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_mux.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_mux.c @@ -443,7 +443,7 @@ linuxdvb_mux_dvbs_class_orbital_set ( void *o, const void *s ) { int pos, save = 0; char dir; - char *tmp = strdupa(s); + char *tmp = tvh_strdupa(s); linuxdvb_mux_t *lm = o; dir = tmp[strlen(tmp)-1];