comparison src/process-unix.c @ 5438:8d29f1c4bb98

Merge with 21.5 trunk.
author Mats Lidell <matsl@xemacs.org>
date Fri, 26 Nov 2010 06:43:36 +0100
parents 308d34e9f07d c096d8051f89
children 56144c8593a8
comparison
equal deleted inserted replaced
5437:002cb5224e4f 5438:8d29f1c4bb98
2116 int ret; 2116 int ret;
2117 volatile int retry = 0; 2117 volatile int retry = 0;
2118 2118
2119 CHECK_STRING (dest); 2119 CHECK_STRING (dest);
2120 2120
2121 CHECK_NATNUM (port); 2121 check_integer_range (port, Qzero, make_integer (USHRT_MAX));
2122 theport = htons ((unsigned short) XINT (port)); 2122 theport = htons ((unsigned short) XINT (port));
2123 2123
2124 CHECK_NATNUM (ttl); 2124 check_integer_range (ttl, Qzero, make_integer (UCHAR_MAX));
2125 thettl = (unsigned char) XINT (ttl); 2125 thettl = (unsigned char) XINT (ttl);
2126 2126
2127 if ((udp = getprotobyname ("udp")) == NULL) 2127 if ((udp = getprotobyname ("udp")) == NULL)
2128 invalid_operation ("No info available for UDP protocol", Qunbound); 2128 invalid_operation ("No info available for UDP protocol", Qunbound);
2129 2129