buffer = xmalloc (iface->buffer_length);
reply = xmalloc (iface->buffer_length);
- while (1) {
+ for (;;) {
struct timeval tv;
int bufpos = -1;
int buflen = iface->buffer_length;
signal_setup ();
- while (1) {
+ for (;;) {
retval = wait_for_packet (&rset, state, options);
/* We should always handle our signals first */
/* Not all implementations return the needed buffer size for
* SIOGIFCONF so we loop like so for all until it works */
memset (&ifc, 0, sizeof (struct ifconf));
- while (1) {
+ for (;;) {
ifc.ifc_len = len;
ifc.ifc_buf = xmalloc (len);
if (ioctl (s, SIOCGIFCONF, &ifc) == -1) {
memset (buffer, 0, BUFFERLEN);
iov.iov_base = buffer;
- while (1) {
+ for (;;) {
iov.iov_len = BUFFERLEN;
bytes = recvmsg (s, &msg, 0);
int ipv4ll_get_address (interface_t *iface, dhcp_t *dhcp) {
struct in_addr addr;
- while (1) {
+ for (;;) {
addr.s_addr = htonl (LINKLOCAL_ADDR |
((abs (random ()) % 0xFD00) + 0x0100));
errno = 0;