File 0001-Use-INITIALIZE_EASYLOGGINGPP-in-Error.cpp.patch of Package encfs
From d985b3ec9eee98da297ec7ccff96fabf539f610e Mon Sep 17 00:00:00 2001
From: benrubson <ben.rubson@gmail.com>
Date: Sat, 22 Apr 2017 20:13:02 +0200
Subject: [PATCH] Use INITIALIZE_EASYLOGGINGPP in Error.cpp
---
encfs/Error.cpp | 2 ++
encfs/encfsctl.cpp | 2 --
encfs/main.cpp | 2 --
encfs/makeKey.cpp | 2 --
encfs/test.cpp | 2 --
5 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/encfs/Error.cpp b/encfs/Error.cpp
index 94c5909..63ae113 100644
--- a/encfs/Error.cpp
+++ b/encfs/Error.cpp
@@ -1,5 +1,7 @@
#include "Error.h"
+INITIALIZE_EASYLOGGINGPP
+
namespace encfs {
el::base::DispatchAction rlogAction = el::base::DispatchAction::NormalLog;
diff --git a/encfs/encfsctl.cpp b/encfs/encfsctl.cpp
index 6a5d17e..26b82da 100644
--- a/encfs/encfsctl.cpp
+++ b/encfs/encfsctl.cpp
@@ -53,8 +53,6 @@ using namespace std;
using gnu::autosprintf;
using namespace encfs;
-INITIALIZE_EASYLOGGINGPP
-
static int showInfo(int argc, char **argv);
static int showVersion(int argc, char **argv);
static int chpasswd(int argc, char **argv);
diff --git a/encfs/main.cpp b/encfs/main.cpp
index ff6a485..fdf59f4 100644
--- a/encfs/main.cpp
+++ b/encfs/main.cpp
@@ -58,8 +58,6 @@ using namespace std;
using namespace encfs;
using gnu::autosprintf;
-INITIALIZE_EASYLOGGINGPP
-
namespace encfs {
class DirNode;
diff --git a/encfs/makeKey.cpp b/encfs/makeKey.cpp
index d0a14d2..1e69eda 100644
--- a/encfs/makeKey.cpp
+++ b/encfs/makeKey.cpp
@@ -31,8 +31,6 @@
using namespace std;
using namespace encfs;
-INITIALIZE_EASYLOGGINGPP
-
void genKey(const std::shared_ptr<Cipher> &cipher) {
CipherKey key = cipher->newRandomKey();
diff --git a/encfs/test.cpp b/encfs/test.cpp
index ee66469..e850db3 100644
--- a/encfs/test.cpp
+++ b/encfs/test.cpp
@@ -49,8 +49,6 @@
using namespace std;
using namespace encfs;
-INITIALIZE_EASYLOGGINGPP
-
const int FSBlockSize = 256;
static int checkErrorPropogation(const std::shared_ptr<Cipher> &cipher,
--
2.12.0