comparison src/process-unix.c @ 671:53ec80338ec1

[xemacs-hg @ 2001-10-01 12:47:10 by didierv] spurious htonl call fix
author didierv
date Mon, 01 Oct 2001 12:47:10 +0000
parents fdefd0186b75
children 76d5a3dd827a
comparison
equal deleted inserted replaced
670:12095b04a9b6 671:53ec80338ec1
1936 1936
1937 /* This will be used for both sockets */ 1937 /* This will be used for both sockets */
1938 memset (&sa, 0, sizeof(sa)); 1938 memset (&sa, 0, sizeof(sa));
1939 sa.sin_family = AF_INET; 1939 sa.sin_family = AF_INET;
1940 sa.sin_port = theport; 1940 sa.sin_port = theport;
1941 sa.sin_addr.s_addr = htonl (inet_addr ((char *) XSTRING_DATA (dest))); 1941 sa.sin_addr.s_addr = inet_addr ((char *) XSTRING_DATA (dest));
1942 1942
1943 /* Socket configuration for reading ------------------------ */ 1943 /* Socket configuration for reading ------------------------ */
1944 1944
1945 /* Multiple connections from the same machine. This must be done before 1945 /* Multiple connections from the same machine. This must be done before
1946 bind. If it fails, it shouldn't be fatal. The only consequence is that 1946 bind. If it fails, it shouldn't be fatal. The only consequence is that
1959 report_network_error ("error binding socket", list3 (Qunbound, name, 1959 report_network_error ("error binding socket", list3 (Qunbound, name,
1960 port)); 1960 port));
1961 } 1961 }
1962 1962
1963 /* join multicast group */ 1963 /* join multicast group */
1964 imr.imr_multiaddr.s_addr = htonl (inet_addr ((char *) XSTRING_DATA (dest))); 1964 imr.imr_multiaddr.s_addr = inet_addr ((char *) XSTRING_DATA (dest));
1965 imr.imr_interface.s_addr = htonl (INADDR_ANY); 1965 imr.imr_interface.s_addr = htonl (INADDR_ANY);
1966 if (setsockopt (rs, IPPROTO_IP, IP_ADD_MEMBERSHIP, 1966 if (setsockopt (rs, IPPROTO_IP, IP_ADD_MEMBERSHIP,
1967 &imr, sizeof (struct ip_mreq)) < 0) 1967 &imr, sizeof (struct ip_mreq)) < 0)
1968 { 1968 {
1969 int save_errno = errno; 1969 int save_errno = errno;