From addd9c68a92fc12cbe67cb5d07ebf0c4be1942b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 26 Jun 2007 12:40:56 +0000 Subject: [PATCH] Use hx509_err to print error and exit. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21338 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index a2812aeb4..aad98fc3d 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -1218,7 +1218,7 @@ pkcs10_print(struct pkcs10_print_options *opt, int argc, char **argv) ret = _hx509_request_print(context, stdout, p, length); _hx509_unmap_file(p, length); if (ret) - errx(1, "failed to print file %s: %d", argv[i], ret); + hx509_err(context, 1, ret, "Failed to print file %s", argv[ i]); } return 0;