diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-08 20:46:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-08 20:46:57 +0000 |
commit | ca9e67c91086001b071d5e06ce4ced97b0957268 (patch) | |
tree | 843850e0b33d354fff90322a4d224a18636a5546 /lib/libc/net | |
parent | 1d31fc657db98b1b788825732b5ba84d66b905f3 (diff) |
do not call abort()
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/base64.c | 4 | ||||
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/lib/libc/net/base64.c b/lib/libc/net/base64.c index a2055f5cc3c..452fe5afcc8 100644 --- a/lib/libc/net/base64.c +++ b/lib/libc/net/base64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: base64.c,v 1.2 1997/07/09 01:08:24 millert Exp $ */ +/* $OpenBSD: base64.c,v 1.3 1997/11/08 20:46:55 deraadt Exp $ */ /* * Copyright (c) 1996 by Internet Software Consortium. @@ -259,8 +259,6 @@ b64_pton(src, target, targsize) tarindex++; state = 0; break; - default: - abort(); } } diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 266651b1521..82eebd251d0 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.26 1997/07/09 01:08:26 millert Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.27 1997/11/08 20:46:56 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -193,7 +193,7 @@ getanswer(answer, anslen, qname, qtype) #endif break; default: - return (NULL); /* XXX should be abort(); */ + return (NULL); } /* * find first satisfactory answer @@ -388,8 +388,6 @@ getanswer(answer, anslen, qname, qtype) buflen -= n; cp += n; break; - default: - abort(); } if (!had_error) haveanswer++; @@ -648,8 +646,6 @@ gethostbyaddr(addr, len, af) } strcpy(qp, "ip6.int"); break; - default: - abort(); } bcopy(_res.lookups, lookups, sizeof lookups); |