summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-09-22 20:56:25 +0200
committerDavid Seifert <soap@gentoo.org>2016-09-24 14:44:14 +0200
commit44d3a3571a8dde665488d26c1057a87b9c62af9e (patch)
tree8b69f6d8b727e9afbf333928092a413a590513b0 /sci-biology
parentnet-analyzer/bmon: Stable for PPC64 (bug #593762). (diff)
downloadgentoo-44d3a3571a8dde665488d26c1057a87b9c62af9e.tar.gz
gentoo-44d3a3571a8dde665488d26c1057a87b9c62af9e.tar.bz2
gentoo-44d3a3571a8dde665488d26c1057a87b9c62af9e.zip
sci-biology/iqpnni: Fix CRLF line endings in patch
Gentoo-bug: 594654 Package-Manager: portage-2.3.1
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/iqpnni/files/iqpnni-3.3.2-cpp14.patch48
1 files changed, 24 insertions, 24 deletions
diff --git a/sci-biology/iqpnni/files/iqpnni-3.3.2-cpp14.patch b/sci-biology/iqpnni/files/iqpnni-3.3.2-cpp14.patch
index 12495167c7ad..69a4aacb61b1 100644
--- a/sci-biology/iqpnni/files/iqpnni-3.3.2-cpp14.patch
+++ b/sci-biology/iqpnni/files/iqpnni-3.3.2-cpp14.patch
@@ -16,33 +16,33 @@ Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=594332
--- a/src/iqp.cpp
+++ b/src/iqp.cpp
@@ -508,7 +508,7 @@
- if (in_pam.tree_file != NULL) {
- std::ifstream userTreeFile_;
- userTreeFile_.open (in_pam.tree_file);
-- if (userTreeFile_ != 0) {
-+ if (userTreeFile_) {
- initialTree_.readFile (in_pam.tree_file);
- initialTree_.createUrTree ();
- hasInitTree = true;
+ if (in_pam.tree_file != NULL) {
+ std::ifstream userTreeFile_;
+ userTreeFile_.open (in_pam.tree_file);
+- if (userTreeFile_ != 0) {
++ if (userTreeFile_) {
+ initialTree_.readFile (in_pam.tree_file);
+ initialTree_.createUrTree ();
+ hasInitTree = true;
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -118,7 +118,7 @@
-
- ifstream in;
- in.open (boottree_file_name.c_str());
-- if (in == 0)
-+ if (!in)
- Utl::announceError ("Cannot open the user tree file ...");
-
- int num_tree = 0;
+
+ ifstream in;
+ in.open (boottree_file_name.c_str());
+- if (in == 0)
++ if (!in)
+ Utl::announceError ("Cannot open the user tree file ...");
+
+ int num_tree = 0;
--- a/src/usertree.cpp
+++ b/src/usertree.cpp
@@ -94,7 +94,7 @@
- void UserTree::readFile (const char *userTreeFile) {
- ifstream in;
- in.open (userTreeFile);
-- if (in == 0)
-+ if (!in)
- Utl::announceError ("Cannot open the user tree file ...");
-
- readFile(in);
+ void UserTree::readFile (const char *userTreeFile) {
+ ifstream in;
+ in.open (userTreeFile);
+- if (in == 0)
++ if (!in)
+ Utl::announceError ("Cannot open the user tree file ...");
+
+ readFile(in);