summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-09-02 21:45:38 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-09-02 21:45:38 +0000
commitaea6c2ab020b552cbef9ce60c2a7c0ff9053a8c0 (patch)
tree7924c1fa35ab4d17554c030fad19d620f80c6ba5
parent9e80d455c8d7cb8de81fdb396e7a1d95a24529a8 (diff)
use err() instead of errx when an errno is set
-rw-r--r--usr.bin/signify/signify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index d85e5536aca..373d5336cbe 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.115 2016/09/02 21:31:22 tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.116 2016/09/02 21:45:37 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -189,7 +189,7 @@ readmsg(const char *filename, unsigned long long *msglenp)
errx(1, "msg too large in %s", filename);
space = msglen;
if (!(msg = realloc(msg, msglen + space + 1)))
- errx(1, "realloc");
+ err(1, "realloc");
}
if ((x = read(fd, msg + msglen, space)) == -1)
err(1, "read from %s", filename);
@@ -454,7 +454,7 @@ check_keytype(const char *pubkeyfile, const char *keytype)
len = strlen(pubkeyfile);
slen = asprintf(&cmp, "-%s.pub", keytype);
if (slen < 0)
- errx(1, "asprintf error");
+ err(1, "asprintf error");
if (len < slen)
errx(1, "too short");