Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2010, 6:38:11 PM (14 years ago)
Author:
adrfried
Message:

also make unix.c C89 compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/external/enet/unix.c

    r7390 r7393  
    9999    {
    100100        address -> host = enet_address_map4 ((((struct sockaddr_in *) sin) -> sin_addr.s_addr));
    101         //address -> scopeID = 0;
     101        /* address -> scopeID = 0; */
    102102        address -> port = ENET_NET_TO_HOST_16 (((struct sockaddr_in *) sin) -> sin_port);
    103103        return ENET_IPV4;
     
    200200    else
    201201    {
    202         ENetAddress address_ = { ENET_HOST_ANY, 0, 0 };
     202        ENetAddress address_;
     203        address_.host = ENET_HOST_ANY;
     204        address_.scopeID = 0;
     205        address_.port = 0;
    203206        enet_address_set_sin((struct sockaddr *) & sin, & address_, family);
    204207    }
     
    224227        setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, & value, sizeof (int));
    225228    }
    226 #endif // IPV6_V6ONLY
     229#endif /* IPV6_V6ONLY */
    227230
    228231    return sock;
     
    405408    pollSocket[0].events = 0;
    406409    pollSocket[1].events = 0;
    407     //pollSocket[0].revents = 0;
     410    /* pollSocket[0].revents = 0; */
    408411    pollSocket[1].revents = 0;
    409412
Note: See TracChangeset for help on using the changeset viewer.