summaryrefslogtreecommitdiff
path: root/usr.sbin/kvm_mkdb/nlist.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-05-20 01:25:25 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-05-20 01:25:25 +0000
commit597da3199199b14e2722a1ada9fccb3737814d7f (patch)
treeb475f359033bb4063109bd5404e3d5a943578b0d /usr.sbin/kvm_mkdb/nlist.c
parentf45d4774a3a08f1a090fecf301051d4c28ec94f6 (diff)
Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
Diffstat (limited to 'usr.sbin/kvm_mkdb/nlist.c')
-rw-r--r--usr.sbin/kvm_mkdb/nlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c
index 26356453bc7..1de7eb7ce7c 100644
--- a/usr.sbin/kvm_mkdb/nlist.c
+++ b/usr.sbin/kvm_mkdb/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.44 2013/11/12 13:11:10 deraadt Exp $ */
+/* $OpenBSD: nlist.c,v 1.45 2014/05/20 01:25:24 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -320,7 +320,7 @@ create_knlist(char *name, int fd, DB *db)
error = __elf_knlist(fd, db, ksyms);
if (fmterr != NULL)
- warnx("%s: %s: %s", kfile, fmterr, strerror(EFTYPE));
+ warnc(EFTYPE, "%s: %s", kfile, fmterr);
return(error);
}