]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed copyrights. removed useless code.
authorCarter Waxman <cwaxman@cisco.com>
Fri, 22 Apr 2016 12:12:24 +0000 (08:12 -0400)
committerCarter Waxman <cwaxman@cisco.com>
Fri, 22 Apr 2016 12:12:24 +0000 (08:12 -0400)
src/network_inspectors/packet_capture/capture_module.cc
src/network_inspectors/packet_capture/capture_module.h
src/network_inspectors/packet_capture/packet_capture.h
src/network_inspectors/perf_monitor/perf_monitor.cc

index 9b3dee90a35f4a3879b7c126bd4282df754eeca4..74823f3b3b590770821f53d61ee478b94ac869f1 100644 (file)
@@ -1,5 +1,5 @@
 //--------------------------------------------------------------------------
-// Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
+// Copyright (C) 2016-2016 Cisco and/or its affiliates. All rights reserved.
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License Version 2 as published
index 6419e6475cce7f37c4b75bbf220faeee9b0c9399..3b7c7861be8f535bfdcc4f44cc4cc326c76773c6 100644 (file)
@@ -1,5 +1,5 @@
 //--------------------------------------------------------------------------
-// Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
+// Copyright (C) 2016-2016 Cisco and/or its affiliates. All rights reserved.
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License Version 2 as published
index e0411baa6c51ae18b930d74accdad0cce3e3a820..53230740530b6ede31687761a05f9e2efe3654a3 100644 (file)
@@ -1,6 +1,5 @@
 //--------------------------------------------------------------------------
-// Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
-// Copyright (C) 2002-2013 Sourcefire, Inc.
+// Copyright (C) 2016-2016 Cisco and/or its affiliates. All rights reserved.
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License Version 2 as published
index ea55fa3b4a1bb338aa633757814f5806bde391e9..4e1bd8028dc317d548f630b7b097282c84a912ba 100644 (file)
@@ -277,19 +277,10 @@ static void mod_dtor(Module* m)
 { delete m; }
 
 static Inspector* pm_ctor(Module* m)
-{
-    static THREAD_LOCAL unsigned s_init = true;
-
-    if ( !s_init )
-        return nullptr;
-
-    return new PerfMonitor((PerfMonModule*)m);
-}
+{ return new PerfMonitor((PerfMonModule*)m); }
 
 static void pm_dtor(Inspector* p)
-{
-    delete p;
-}
+{ delete p; }
 
 static const InspectApi pm_api =
 {