diff options
author | guenther <guenther@openbsd.org> | 2014-05-20 01:25:23 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2014-05-20 01:25:23 +0000 |
commit | 5ad04d351680822078003e2b066cfc9680d6157d (patch) | |
tree | bc78d1cc74e659478aa86d8884efcb9a0d678e50 /usr.sbin/kvm_mkdb | |
parent | Bring UTF8_{getc,putc} up-to-date: it's been a decade since 5- and 6-byte (diff) | |
download | wireguard-openbsd-5ad04d351680822078003e2b066cfc9680d6157d.tar.xz wireguard-openbsd-5ad04d351680822078003e2b066cfc9680d6157d.zip |
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')
-rw-r--r-- | usr.sbin/kvm_mkdb/nlist.c | 4 |
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); } |