This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: ir-ctl: use strndup instead of strndupa (fixes musl compile)
Author:  Peter Seiderer <[email protected]>
Date:    Mon Feb 20 17:33:43 2017 -0300

Fixes buildroot musl compile (see [1], [2]):

  ir-ctl.c:(.text+0xb06): undefined reference to `strndupa'

[1] 
http://autobuild.buildroot.net/results/b8b96c7bbf2147dacac62485cbfdbcfd758271a5
[2] http://lists.busybox.net/pipermail/buildroot/2017-February/184048.html

Signed-off-by: Peter Seiderer <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 utils/ir-ctl/ir-ctl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=6941744b4cd6d6f782ca3a4063842db07ce11eb1
diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c
index bc58cee0f8da..f938b4299c13 100644
--- a/utils/ir-ctl/ir-ctl.c
+++ b/utils/ir-ctl/ir-ctl.c
@@ -344,12 +344,14 @@ static struct file *read_scancode(const char *name)
                return NULL;
        }
 
-       pstr = strndupa(name, p - name);
+       pstr = strndup(name, p - name);
 
        if (!protocol_match(pstr, &proto)) {
                fprintf(stderr, _("error: protocol '%s' not found\n"), pstr);
+               free(pstr);
                return NULL;
        }
+       free(pstr);
 
        if (!strtoscancode(p + 1, &scancode)) {
                fprintf(stderr, _("error: invalid scancode '%s'\n"), p + 1);

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to