summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/io.c6
-rw-r--r--sysdep/unix/krt-set.c4
-rw-r--r--sysdep/unix/main.c2
3 files changed, 6 insertions, 6 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);
}
}
diff --git a/sysdep/unix/krt-set.c b/sysdep/unix/krt-set.c
index 33d5bca0..83984fec 100644
--- a/sysdep/unix/krt-set.c
+++ b/sysdep/unix/krt-set.c
@@ -77,7 +77,7 @@ krt_ioctl(int ioc, rte *e, char *name)
break;
#endif
default:
- die("krt set: unknown flags, but not filtered");
+ bug("krt set: unknown flags, but not filtered");
}
if (ioctl(if_scan_sock, ioc, &re) < 0)
@@ -127,6 +127,6 @@ void
krt_set_preconfig(struct krt_proto *x)
{
if (if_scan_sock < 0)
- die("krt set: missing socket");
+ bug("krt set: missing socket");
x->p.rt_notify = krt_set_notify;
}
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index f5076c41..a2b33180 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -121,5 +121,5 @@ main(void)
debug("Entering I/O loop.\n");
io_loop();
- die("I/O loop died");
+ bug("I/O loop died");
}