diff options
Diffstat (limited to 'meta-networking/recipes-support/libmemcached/files/0001-Fix-comparison-types.patch')
-rw-r--r-- | meta-networking/recipes-support/libmemcached/files/0001-Fix-comparison-types.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libmemcached/files/0001-Fix-comparison-types.patch b/meta-networking/recipes-support/libmemcached/files/0001-Fix-comparison-types.patch new file mode 100644 index 000000000..26b5e250c --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/files/0001-Fix-comparison-types.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From ed4422979b221c8613ca02eb5c57cb80009366d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 18 Mar 2017 10:13:24 -0700 | ||
4 | Subject: [PATCH 1/2] Fix comparison types | ||
5 | |||
6 | Fixes | ||
7 | error: comparison between pointer and integer ('char *' and 'int') | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | clients/memflush.cc | 4 ++-- | ||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/clients/memflush.cc b/clients/memflush.cc | ||
15 | index 8bd0dbf..71545ea 100644 | ||
16 | --- a/clients/memflush.cc | ||
17 | +++ b/clients/memflush.cc | ||
18 | @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) | ||
19 | { | ||
20 | options_parse(argc, argv); | ||
21 | |||
22 | - if (opt_servers == false) | ||
23 | + if (opt_servers == NULL) | ||
24 | { | ||
25 | char *temp; | ||
26 | |||
27 | @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) | ||
28 | opt_servers= strdup(temp); | ||
29 | } | ||
30 | |||
31 | - if (opt_servers == false) | ||
32 | + if (opt_servers == NULL) | ||
33 | { | ||
34 | std::cerr << "No Servers provided" << std::endl; | ||
35 | exit(EXIT_FAILURE); | ||
36 | -- | ||
37 | 2.12.0 | ||
38 | |||