From 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 17:12:47 +0000 Subject: Rename all patches that contain '::' as a path separator, and use '__' instead. --- comms/lirc/files/patch-daemons__lircd.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 comms/lirc/files/patch-daemons__lircd.c (limited to 'comms/lirc/files/patch-daemons__lircd.c') diff --git a/comms/lirc/files/patch-daemons__lircd.c b/comms/lirc/files/patch-daemons__lircd.c new file mode 100644 index 000000000000..b2b23d3d2fe2 --- /dev/null +++ b/comms/lirc/files/patch-daemons__lircd.c @@ -0,0 +1,20 @@ +--- daemons/lircd.c.orig ++++ daemons/lircd.c +@@ -1318,7 +1318,7 @@ int send_remote(int fd, char *message, s + + codes = remote->codes; + while (codes->name != NULL) { +- len = snprintf(buffer, PACKET_SIZE, "%016llx %s\n", codes->code, codes->name); ++ len = snprintf(buffer, PACKET_SIZE, "%016llx %s\n", (unsigned long long)codes->code, codes->name); + if (len >= PACKET_SIZE + 1) { + len = sprintf(buffer, "code_too_long\n"); + } +@@ -1338,7 +1338,7 @@ int send_name(int fd, char *message, str + (write_socket_len(fd, protocol_string[P_BEGIN]) && write_socket_len(fd, message) + && write_socket_len(fd, protocol_string[P_SUCCESS]) && write_socket_len(fd, protocol_string[P_DATA]))) + return (0); +- len = snprintf(buffer, PACKET_SIZE, "1\n%016llx %s\n", code->code, code->name); ++ len = snprintf(buffer, PACKET_SIZE, "1\n%016llx %s\n", (unsigned long long)code->code, code->name); + if (len >= PACKET_SIZE + 1) { + len = sprintf(buffer, "1\ncode_too_long\n"); + } -- cgit v1.2.3