diff options
author | wiz <wiz> | 2001-08-07 22:14:52 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-08-07 22:14:52 +0000 |
commit | 8abcf0f546f4bf1e1dc04b5309a9d438f4239391 (patch) | |
tree | e53d15ddc618dfa2f3eabd83ab82eb80a1023133 /pkgtools | |
parent | e280c0299563534e838576386977fe51ad9969b0 (diff) | |
download | pkgsrc-8abcf0f546f4bf1e1dc04b5309a9d438f4239391.tar.gz |
Add some `\n' in error messages, per pkg/13650 by Stoned Elipot.
Bump to 20010807.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/digest/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/digest/files/digest.c | 10 |
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; } } |