forked from pool/libmemcached
Adam Majer
cc944ca582
- Add libmemcached-1.0.18-fix-build-gcc7.patch: Fix build with GCC 7, picked from Fedora (boo#1041295). OBS-URL: https://build.opensuse.org/request/show/505738 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmemcached?expand=0&rev=52
22 lines
583 B
Diff
22 lines
583 B
Diff
diff -up ./clients/memflush.cc.old ./clients/memflush.cc
|
|
--- ./clients/memflush.cc.old 2017-02-12 10:12:59.615209225 +0100
|
|
+++ ./clients/memflush.cc 2017-02-12 10:13:39.998382783 +0100
|
|
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
|
|
{
|
|
options_parse(argc, argv);
|
|
|
|
- if (opt_servers == false)
|
|
+ if (!opt_servers)
|
|
{
|
|
char *temp;
|
|
|
|
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
|
|
opt_servers= strdup(temp);
|
|
}
|
|
|
|
- if (opt_servers == false)
|
|
+ if (!opt_servers)
|
|
{
|
|
std::cerr << "No Servers provided" << std::endl;
|
|
exit(EXIT_FAILURE);
|