summaryrefslogtreecommitdiffstats
path: root/sys/lib
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-09-20 22:26:05 +0000
committermiod <miod@openbsd.org>2011-09-20 22:26:05 +0000
commit8019116c4db2f410b7daff148a546e4fc98e3071 (patch)
treeb1d1d34b0bfa2e6254762bd1b3a6e1009081cfb3 /sys/lib
parentRemove unused file before deranged boot blocks writer get ideas from it. (diff)
downloadwireguard-openbsd-8019116c4db2f410b7daff148a546e4fc98e3071.tar.xz
wireguard-openbsd-8019116c4db2f410b7daff148a546e4fc98e3071.zip
Remove unused libsa error code and descriptions. Anything shrinking
boot blocks is worth having.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/saerrno.h5
-rw-r--r--sys/lib/libsa/strerror.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/sys/lib/libsa/saerrno.h b/sys/lib/libsa/saerrno.h
index 6c328b63803..98c01f6ce47 100644
--- a/sys/lib/libsa/saerrno.h
+++ b/sys/lib/libsa/saerrno.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: saerrno.h,v 1.6 2003/06/02 23:28:09 millert Exp $ */
+/* $OpenBSD: saerrno.h,v 1.7 2011/09/20 22:26:05 miod Exp $ */
/* $NetBSD: saerrno.h,v 1.6 1995/09/18 21:19:45 pk Exp $ */
/*
@@ -42,11 +42,8 @@ extern int errno;
#define EUNIT (ELAST+3) /* bad drive */
#define EPART (ELAST+4) /* bad partition */
#define ERDLAB (ELAST+5) /* can't read disk label */
-#define EUNLAB (ELAST+6) /* unlabeled disk */
#define EOFFSET (ELAST+7) /* relative seek not supported */
-#define ECMD (ELAST+8) /* undefined driver command */
#define EBSE (ELAST+9) /* bad sector error */
-#define EWCK (ELAST+10) /* write check error */
#define EECC (ELAST+11) /* uncorrectable ecc error */
#define EHER (ELAST+12) /* hard error */
#define ESALAST (ELAST+12) /* */
diff --git a/sys/lib/libsa/strerror.c b/sys/lib/libsa/strerror.c
index c5677534c26..897de08b694 100644
--- a/sys/lib/libsa/strerror.c
+++ b/sys/lib/libsa/strerror.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strerror.c,v 1.8 2003/08/11 06:23:09 deraadt Exp $ */
+/* $OpenBSD: strerror.c,v 1.9 2011/09/20 22:26:05 miod Exp $ */
/* $NetBSD: strerror.c,v 1.11 1996/10/13 02:29:08 christos Exp $ */
/*-
@@ -50,8 +50,6 @@ strerror(int err)
return "bad partition";
case ERDLAB:
return "can't read disk label";
- case EUNLAB:
- return "unlabeled";
case ENXIO:
return "Device not configured";
case EPERM: