Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ed If the definition of a static function is #if DES, th...
details: https://anonhg.NetBSD.org/src/rev/4a5b6f406b56
branches: trunk
changeset: 755569:4a5b6f406b56
user: riz <riz%NetBSD.org@localhost>
date: Wed Jun 09 19:20:18 2010 +0000
description:
If the definition of a static function is #if DES, the declaration
of it should be too. Fixes build of ed where MKCRYPTO=no.
diffstat:
bin/ed/cbc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r eeb44d2eceac -r 4a5b6f406b56 bin/ed/cbc.c
--- a/bin/ed/cbc.c Wed Jun 09 19:06:31 2010 +0000
+++ b/bin/ed/cbc.c Wed Jun 09 19:20:18 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cbc.c,v 1.21 2009/07/26 02:07:12 dholland Exp $ */
+/* $NetBSD: cbc.c,v 1.22 2010/06/09 19:20:18 riz Exp $ */
/* cbc.c: This file contains the encryption routines for the ed line editor */
/*-
@@ -72,7 +72,7 @@
#if 0
static char *rcsid = "@(#)cbc.c,v 1.2 1994/02/01 00:34:36 alm Exp";
#else
-__RCSID("$NetBSD: cbc.c,v 1.21 2009/07/26 02:07:12 dholland Exp $");
+__RCSID("$NetBSD: cbc.c,v 1.22 2010/06/09 19:20:18 riz Exp $");
#endif
#endif /* not lint */
@@ -141,12 +141,14 @@
#endif
+#ifdef DES
static void des_error(const char *);
static int hex_to_binary(int, int);
static void expand_des_key(char *, char *);
static void set_des_key(char *);
static int cbc_decode(char *, FILE *);
static int cbc_encode(char *, int, FILE *);
+#endif
/* init_des_cipher: initialize DES */
Home |
Main Index |
Thread Index |
Old Index