diff options
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.patch | 27 |
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 @@ | |||
1 | From 6bcb58bd69c38b9200e8ec6c382247167571189d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 1 Jul 2017 16:44:15 -0700 | ||
4 | Subject: [PATCH] pipe.c: Use a string instead of char | ||
5 | |||
6 | Fixes | ||
7 | error: invalid conversion from 'char' to 'const void*' [-fpermissive] | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | src/pipe.cpp | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/src/pipe.cpp b/src/pipe.cpp | ||
15 | index 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 | -- | ||
26 | 2.13.2 | ||
27 | |||