C++ベースのLightweightなHTTPサーバー
| Revision | 13fd7b292ffa9c527a778ff5360417e083cf529b (tree) |
|---|---|
| Time | 2013-03-17 13:53:06 |
| Author | Michio Hirai <smg_ykz@user...> |
| Commiter | Michio Hirai |
[Refactor] Minor modifiction of SocketSetter
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | #include "cm_socket_type.h" |
| 9 | 9 | #include "cm_socket_address.h" |
| 10 | 10 | #include "mt_mpl.h" |
| 11 | +#include "mt_unuse.h" | |
| 11 | 12 | #include "mt_typelist.h" |
| 12 | 13 | #include "mt_shim_clear_memory.h" |
| 13 | 14 |
| @@ -38,7 +39,7 @@ struct SocketAddressSetterUnix | ||
| 38 | 39 | |
| 39 | 40 | void operator()(std::pair<SocketAddress, socklen_t>& pair) |
| 40 | 41 | { |
| 41 | - (void) pair; | |
| 42 | + mt::unuse(pair); | |
| 42 | 43 | } |
| 43 | 44 | |
| 44 | 45 | static int getKey() |
| @@ -95,8 +96,8 @@ inline int (*getFindIfKey(T&))() | ||
| 95 | 96 | typedef mt::MakeTypelist<SockSetter<SOCKET_TYPE_UNIX_DGRAM, PF_LOCAL, SOCK_DGRAM>, |
| 96 | 97 | SockSetter<SOCKET_TYPE_UNIX_STREAM, PF_LOCAL, SOCK_STREAM>, |
| 97 | 98 | SockSetter<SOCKET_TYPE_UNIX_SEQPACKET, PF_LOCAL, SOCK_SEQPACKET>, |
| 98 | - SockSetter<SOCKET_TYPE_INET_DGRAM, PF_INET, SOCK_DGRAM>, | |
| 99 | - SockSetter<SOCKET_TYPE_INET_STREAM, PF_INET, SOCK_STREAM> | |
| 99 | + SockSetter<SOCKET_TYPE_INET_DGRAM, PF_INET, SOCK_DGRAM>, | |
| 100 | + SockSetter<SOCKET_TYPE_INET_STREAM, PF_INET, SOCK_STREAM> | |
| 100 | 101 | >::Result SocketSetterTypes; |
| 101 | 102 | |
| 102 | 103 | typedef mt::MakeTypelist<SocketAddressSetterUnix, |