summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch')
-rw-r--r--meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
new file mode 100644
index 000000000..6883f9a0b
--- /dev/null
+++ b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
@@ -0,0 +1,27 @@
1From 6bcb58bd69c38b9200e8ec6c382247167571189d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 1 Jul 2017 16:44:15 -0700
4Subject: [PATCH] pipe.c: Use a string instead of char
5
6Fixes
7error: invalid conversion from 'char' to 'const void*' [-fpermissive]
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/pipe.cpp | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/pipe.cpp b/src/pipe.cpp
15index 45c2ba6..1303c2d 100644
16--- a/src/pipe.cpp
17+++ b/src/pipe.cpp
18@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
19 void Pipe::signal()
20 {
21 // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
22- ::write(_fd_write, '\0', 1);
23+ ::write(_fd_write, "", 1);
24 }
25--
262.13.2
27