Make public yp2_filter_struct non-const. If not, the linker symbol
[metaproxy-moved-to-github.git] / src / filter_dl.cpp
index 7ce559b..54c1051 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_dl.cpp,v 1.1 2005-12-10 09:59:10 adam Exp $
+/* $Id: filter_dl.cpp,v 1.3 2006-01-04 11:55:31 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -21,7 +21,7 @@ namespace yp2 {
 
 void yp2::filter::Filter_dl::process(yp2::Package & package) const
 {
-    package.data() = 42;
+    package.data() = 42;   // magic checked in test_filter_factory
 }
 
 static yp2::filter::Base* filter_creator()
@@ -32,6 +32,7 @@ static yp2::filter::Base* filter_creator()
 extern "C" {
     struct yp2_filter_struct yp2_filter_dl = {
         0,
+        "dl",
         filter_creator
     };
 }