diff options
author | Martin Mares <mj@ucw.cz> | 1998-12-20 14:27:37 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-12-20 14:27:37 +0000 |
commit | 08c69a7720af32a82b8e2b4b9ea3742074b3b8ee (patch) | |
tree | 3405e18d16397ef85f97c34b3cd08a54ff689af0 /sysdep/unix/io.c | |
parent | ee969ea7f4c4f40020e4209b167da04d04aba52c (diff) |
die() -> bug() where appropriate.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r-- | sysdep/unix/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 33406664..0d8f1257 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -293,7 +293,7 @@ void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port) { if (sa->sin_family != AF_INET) - die("get_sockaddr called for wrong address family"); + bug("get_sockaddr called for wrong address family"); if (port) *port = ntohs(sa->sin_port); memcpy(a, &sa->sin_addr.s_addr, sizeof(*a)); @@ -379,7 +379,7 @@ sk_open(sock *s) fd = socket(PF_INET, SOCK_RAW, s->dport); break; default: - die("sk_open() called for invalid sock type %d", s->type); + bug("sk_open() called for invalid sock type %d", s->type); } if (fd < 0) die("sk_open: socket: %m"); @@ -530,7 +530,7 @@ sk_maybe_write(sock *s) return 1; } default: - die("sk_maybe_write: unknown socket type %d", s->type); + bug("sk_maybe_write: unknown socket type %d", s->type); } } |