summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-12-07 15:08:32 +0000
committerjsing <>2014-12-07 15:08:32 +0000
commit7130e43797a5dbb7ddca81dd2078a38b152e74a0 (patch)
treecc5d4d1b82a7eeb781591678b844a600ce1468d7 /src
parentf8b7419c7a231d8409475ccb008dfdb666e82813 (diff)
downloadopenbsd-7130e43797a5dbb7ddca81dd2078a38b152e74a0.tar.gz
openbsd-7130e43797a5dbb7ddca81dd2078a38b152e74a0.tar.bz2
openbsd-7130e43797a5dbb7ddca81dd2078a38b152e74a0.zip
Remove unused variable.
From Benjamin Baier <programmer at netzbasis.de>
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/engine.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/engine.c b/src/usr.bin/openssl/engine.c
index 2d24e07254..009ecf77f7 100644
--- a/src/usr.bin/openssl/engine.c
+++ b/src/usr.bin/openssl/engine.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: engine.c,v 1.1 2014/08/26 17:47:24 jsing Exp $ */ 1/* $OpenBSD: engine.c,v 1.2 2014/12/07 15:08:32 jsing Exp $ */
2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL 2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -96,8 +96,6 @@ identity(char *ptr)
96static int 96static int
97append_buf(char **buf, const char *s, int *size, int step) 97append_buf(char **buf, const char *s, int *size, int step)
98{ 98{
99 int l = strlen(s);
100
101 if (*buf == NULL) { 99 if (*buf == NULL) {
102 *size = step; 100 *size = step;
103 *buf = malloc(*size); 101 *buf = malloc(*size);
@@ -105,8 +103,6 @@ append_buf(char **buf, const char *s, int *size, int step)
105 return 0; 103 return 0;
106 **buf = '\0'; 104 **buf = '\0';
107 } 105 }
108 if (**buf != '\0')
109 l += 2; /* ", " */
110 106
111 if (strlen(*buf) + strlen(s) >= (unsigned int) *size) { 107 if (strlen(*buf) + strlen(s) >= (unsigned int) *size) {
112 *size += step; 108 *size += step;