summaryrefslogtreecommitdiff
path: root/pkgtools/digest
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-08-07 22:14:52 +0000
committerwiz <wiz@pkgsrc.org>2001-08-07 22:14:52 +0000
commit5fda8f604db647cbd383830e965a4918e96bbda9 (patch)
treee53d15ddc618dfa2f3eabd83ab82eb80a1023133 /pkgtools/digest
parent96d0a30b4cee85d0d94581254327d8a6ea3cfe3d (diff)
downloadpkgsrc-5fda8f604db647cbd383830e965a4918e96bbda9.tar.gz
Add some `\n' in error messages, per pkg/13650 by Stoned Elipot.
Bump to 20010807.
Diffstat (limited to 'pkgtools/digest')
-rw-r--r--pkgtools/digest/Makefile4
-rw-r--r--pkgtools/digest/files/digest.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/pkgtools/digest/Makefile b/pkgtools/digest/Makefile
index 653638321d0..375d0be4c71 100644
--- a/pkgtools/digest/Makefile
+++ b/pkgtools/digest/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2001/07/09 21:44:58 hubertf Exp $
+# $NetBSD: Makefile,v 1.22 2001/08/07 22:14:52 wiz Exp $
#
# When adding new digest algorithms, please use rmd160 as the template,
# and bump the VERSION definition.
@@ -12,7 +12,7 @@ MAINTAINER= agc@netbsd.org
HOMEPAGE= http://www.netbsd.org/Documentation/software/packages.html
COMMENT= Message digest wrapper utility
-VERSION= 20010709
+VERSION= 20010807
EXTRACT_ONLY= # empty
WRKSRC= ${WRKDIR}
diff --git a/pkgtools/digest/files/digest.c b/pkgtools/digest/files/digest.c
index 5d546378136..70d44beaa52 100644
--- a/pkgtools/digest/files/digest.c
+++ b/pkgtools/digest/files/digest.c
@@ -1,4 +1,4 @@
-/* $NetBSD: digest.c,v 1.3 2001/07/09 21:42:30 hubertf Exp $ */
+/* $NetBSD: digest.c,v 1.4 2001/08/07 22:14:53 wiz Exp $ */
/*
* Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
@@ -35,7 +35,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 2001 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: digest.c,v 1.3 2001/07/09 21:42:30 hubertf Exp $");
+__RCSID("$NetBSD: digest.c,v 1.4 2001/08/07 22:14:53 wiz Exp $");
#endif
#include <sys/types.h>
@@ -242,19 +242,19 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
if ((alg = find_algorithm(argv[optind])) == NULL) {
- (void) fprintf(stderr, "No such algorithm `%s'", argv[optind]);
+ (void) fprintf(stderr, "No such algorithm `%s'\n", argv[optind]);
exit(EXIT_FAILURE);
}
rval = EXIT_SUCCESS;
if (argc == optind + 1) {
if (!(*alg->func)(NULL)) {
- (void) fprintf(stderr, "stdin");
+ (void) fprintf(stderr, "stdin\n");
rval = EXIT_FAILURE;
}
} else {
for (i = optind + 1 ; i < argc ; i++) {
if (!(*alg->func)(argv[i])) {
- (void) fprintf(stderr, "%s", argv[i]);
+ (void) fprintf(stderr, "%s\n", argv[i]);
rval = EXIT_FAILURE;
}
}