pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/audit-packages Move variabl...
details: https://anonhg.NetBSD.org/pkgsrc/rev/aeb2ad4e961a
branches: trunk
changeset: 531172:aeb2ad4e961a
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun Jul 22 13:22:21 2007 +0000
description:
Move variable declaration to top of function body to make this build with
older versions of gcc. From Anonymous on IRC.
diffstat:
pkgtools/pkg_install/files/audit-packages/audit-packages.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r f5c8c25c7981 -r aeb2ad4e961a pkgtools/pkg_install/files/audit-packages/audit-packages.c
--- a/pkgtools/pkg_install/files/audit-packages/audit-packages.c Sun Jul 22 11:24:55 2007 +0000
+++ b/pkgtools/pkg_install/files/audit-packages/audit-packages.c Sun Jul 22 13:22:21 2007 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audit-packages.c,v 1.3 2007/07/21 10:21:04 adrianp Exp $ */
+/* $NetBSD: audit-packages.c,v 1.4 2007/07/22 13:22:21 tnn Exp $ */
/*
* Copyright (c) 2007 Adrian Portelli <adrianp%NetBSD.org@localhost>.
@@ -926,12 +926,12 @@
int i = 0;
FILE *hash_in;
+ SHA512_CTX hash_ctx;
if ((hash_in = fopen(hash_input, "r")) == NULL) {
errx(EXIT_FAILURE, "Unable to open: %s", hash_input);
}
- SHA512_CTX hash_ctx;
SHA512_Init(&hash_ctx);
line = safe_calloc(MAXLINELEN, sizeof(char));
Home |
Main Index |
Thread Index |
Old Index