зеркало из https://github.com/github/ruby.git
* ext/socket/socket.c (lookup_order_table): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c3f55e6d48
Коммит
ae9af4d333
|
@ -132,8 +132,8 @@ struct sockaddr_storage {
|
|||
#endif
|
||||
|
||||
#if defined(INET6) && (defined(LOOKUP_ORDER_HACK_INET) || defined(LOOKUP_ORDER_HACK_INET6))
|
||||
#define LOOKUP_ORDERS 3
|
||||
static int lookup_order_table[LOOKUP_ORDERS] = {
|
||||
#define LOOKUP_ORDERS (sizeof(lookup_order_table) / sizeof(lookup_order_table[0]))
|
||||
static const int lookup_order_table[] = {
|
||||
#if defined(LOOKUP_ORDER_HACK_INET)
|
||||
PF_INET, PF_INET6, PF_UNSPEC,
|
||||
#elif defined(LOOKUP_ORDER_HACK_INET6)
|
||||
|
|
Загрузка…
Ссылка в новой задаче