mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Minor changes to debug_log_writer
- Removed unused m_first data member. - Explicitly delete copy constructor and assignment operator. - Removed unused included headers.
This commit is contained in:
parent
373633ffe2
commit
91a736692a
@ -15,18 +15,6 @@
|
|||||||
|
|
||||||
#include "src/debug_log/debug_log_writer.h"
|
#include "src/debug_log/debug_log_writer.h"
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/ipc.h>
|
|
||||||
#include <sys/shm.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
#include "src/utils/shared_files.h"
|
#include "src/utils/shared_files.h"
|
||||||
|
|
||||||
namespace modsecurity {
|
namespace modsecurity {
|
||||||
|
@ -13,15 +13,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/ipc.h>
|
|
||||||
#include <sys/shm.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <map>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef SRC_DEBUG_LOG_DEBUG_LOG_WRITER_H_
|
#ifndef SRC_DEBUG_LOG_DEBUG_LOG_WRITER_H_
|
||||||
@ -45,7 +37,7 @@ class DebugLogWriter {
|
|||||||
static int open(const std::string& m_fileName, std::string *error);
|
static int open(const std::string& m_fileName, std::string *error);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DebugLogWriter() : m_first(NULL) { }
|
DebugLogWriter() { }
|
||||||
~DebugLogWriter() { }
|
~DebugLogWriter() { }
|
||||||
|
|
||||||
// C++ 03
|
// C++ 03
|
||||||
@ -53,10 +45,8 @@ class DebugLogWriter {
|
|||||||
// Dont forget to declare these two. You want to make sure they
|
// Dont forget to declare these two. You want to make sure they
|
||||||
// are unacceptable otherwise you may accidentally get copies of
|
// are unacceptable otherwise you may accidentally get copies of
|
||||||
// your singleton appearing.
|
// your singleton appearing.
|
||||||
DebugLogWriter(DebugLogWriter const&);
|
DebugLogWriter(DebugLogWriter const&) = delete;
|
||||||
void operator=(DebugLogWriter const&);
|
void operator=(DebugLogWriter const&) = delete;
|
||||||
|
|
||||||
struct debug_log_file_handler *m_first;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user