Revision 08c69a77 sysdep/unix/io.c

View differences:

sysdep/unix/io.c
293 293
get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port)
294 294
{
295 295
  if (sa->sin_family != AF_INET)
296
    die("get_sockaddr called for wrong address family");
296
    bug("get_sockaddr called for wrong address family");
297 297
  if (port)
298 298
    *port = ntohs(sa->sin_port);
299 299
  memcpy(a, &sa->sin_addr.s_addr, sizeof(*a));
......
379 379
      fd = socket(PF_INET, SOCK_RAW, s->dport);
380 380
      break;
381 381
    default:
382
      die("sk_open() called for invalid sock type %d", s->type);
382
      bug("sk_open() called for invalid sock type %d", s->type);
383 383
    }
384 384
  if (fd < 0)
385 385
    die("sk_open: socket: %m");
......
530 530
	return 1;
531 531
      }
532 532
    default:
533
      die("sk_maybe_write: unknown socket type %d", s->type);
533
      bug("sk_maybe_write: unknown socket type %d", s->type);
534 534
    }
535 535
}
536 536

  

Also available in: Unified diff