You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mt...@apache.org on 2009/03/05 17:25:17 UTC

svn commit: r750496 - /qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp

Author: mteira
Date: Thu Mar  5 16:25:17 2009
New Revision: 750496

URL: http://svn.apache.org/viewvc?rev=750496&view=rev
Log:
qpid/log/posix/SinkOptions.cpp
 - Conditionally use LOG_FTP and LOG_AUTHPRIV
 - Add a missing std namespace


Modified:
    qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp?rev=750496&r1=750495&r2=750496&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp Thu Mar  5 16:25:17 2009
@@ -42,10 +42,14 @@
         struct NameValue { const char* name; int value; };
         NameValue nameValue[] = {
             { "AUTH", LOG_AUTH },
+#ifdef HAVE_LOG_AUTHPRIV            
             { "AUTHPRIV", LOG_AUTHPRIV },
+#endif
             { "CRON", LOG_CRON },
             { "DAEMON", LOG_DAEMON },
+#ifdef HAVE_LOG_FTP
             { "FTP", LOG_FTP },
+#endif
             { "KERN", LOG_KERN },
             { "LOCAL0", LOG_LOCAL0 },
             { "LOCAL1", LOG_LOCAL1 },
@@ -72,7 +76,7 @@
     
     int value(const string& name) const {
         string key(name);
-        transform(key.begin(), key.end(), key.begin(), ::toupper);        
+        std::transform(key.begin(), key.end(), key.begin(), ::toupper);        
         ByName::const_iterator i = byName.find(key);
         if (i == byName.end())
             throw Exception("Not a valid syslog facility: " + name);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org