summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-20 15:27:37 +0100
committerMartin Mares <mj@ucw.cz>1998-12-20 15:27:37 +0100
commit08c69a7720af32a82b8e2b4b9ea3742074b3b8ee (patch)
tree3405e18d16397ef85f97c34b3cd08a54ff689af0 /sysdep
parentee969ea7f4c4f40020e4209b167da04d04aba52c (diff)
downloadbird-08c69a7720af32a82b8e2b4b9ea3742074b3b8ee.tar
bird-08c69a7720af32a82b8e2b4b9ea3742074b3b8ee.zip
die() -> bug() where appropriate.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/krt-scan.c2
-rw-r--r--sysdep/unix/io.c6
-rw-r--r--sysdep/unix/krt-set.c4
-rw-r--r--sysdep/unix/main.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c
index 9801f8a..f1c0090 100644
--- a/sysdep/linux/krt-scan.c
+++ b/sysdep/linux/krt-scan.c
@@ -291,7 +291,7 @@ krt_prune(struct krt_proto *p)
rte_update(n, &p->p, new);
break;
default:
- die("krt_prune: invalid route status");
+ bug("krt_prune: invalid route status");
}
if (old)
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 3340666..0d8f125 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 33d5bca..83984fe 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 f5076c4..a2b3318 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");
}