diff options
author | 2014-05-20 01:25:23 +0000 | |
---|---|---|
committer | 2014-05-20 01:25:23 +0000 | |
commit | 5ad04d351680822078003e2b066cfc9680d6157d (patch) | |
tree | bc78d1cc74e659478aa86d8884efcb9a0d678e50 /usr.bin/patch/mkpath.c | |
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.bin/patch/mkpath.c')
-rw-r--r-- | usr.bin/patch/mkpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/mkpath.c b/usr.bin/patch/mkpath.c index 7c0f13fbad4..63d53eccecc 100644 --- a/usr.bin/patch/mkpath.c +++ b/usr.bin/patch/mkpath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkpath.c,v 1.3 2013/11/12 13:51:42 deraadt Exp $ */ +/* $OpenBSD: mkpath.c,v 1.4 2014/05/20 01:25:23 guenther Exp $ */ /* * Copyright (c) 1983, 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -65,7 +65,7 @@ mkpath(char *path) return (-1); } } else if (!S_ISDIR(sb.st_mode)) { - warnx("%s: %s", path, strerror(ENOTDIR)); + warnc(ENOTDIR, "%s", path); return (-1); } |