X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1347f3d1e04bedd1508589173f577673ee2c5554..34d407f7df45b5faaa25a92a04e8582f95162f31:/projects/stargazer/plugins/other/radius/radius.h?ds=inline
diff --git a/projects/stargazer/plugins/other/radius/radius.h b/projects/stargazer/plugins/other/radius/radius.h
index c424c007..8f5ba2a4 100644
--- a/projects/stargazer/plugins/other/radius/radius.h
+++ b/projects/stargazer/plugins/other/radius/radius.h
@@ -133,21 +133,12 @@ private:
bool CanAcctService(const std::string & svc) const;
bool IsAllowedService(const std::string & svc) const;
- void PrintServices(const std::list<std::string> & svcs);
-
- struct Printer : public std::unary_function<std::string, void>
- {
- void operator()(const std::string & line)
- {
- printfd("radius.cpp", "'%s'\n", line.c_str());
- }
- };
struct SPrinter : public std::unary_function<std::pair<std::string, RAD_SESSION>, void>
- {
+ {
void operator()(const std::pair<std::string, RAD_SESSION> & it)
- {
- printfd("radius.cpp", "%s - ('%s', '%s')\n", it.first.c_str(), it.second.userName.c_str(), it.second.serviceType.c_str());
- }
+ {
+ printfd("radius.cpp", "%s - ('%s', '%s')\n", it.first.c_str(), it.second.userName.c_str(), it.second.serviceType.c_str());
+ }
};
BLOWFISH_CTX ctx;