diff options
| author | jsing <> | 2014-12-07 15:08:32 +0000 |
|---|---|---|
| committer | jsing <> | 2014-12-07 15:08:32 +0000 |
| commit | 144d973554b7c2ecc681039dca97ac8e75bba7ab (patch) | |
| tree | cc5d4d1b82a7eeb781591678b844a600ce1468d7 /src/usr.bin/openssl/engine.c | |
| parent | a761ebff2cb2a2b78b88a343ed309d18ed93993e (diff) | |
| download | openbsd-144d973554b7c2ecc681039dca97ac8e75bba7ab.tar.gz openbsd-144d973554b7c2ecc681039dca97ac8e75bba7ab.tar.bz2 openbsd-144d973554b7c2ecc681039dca97ac8e75bba7ab.zip | |
Remove unused variable.
From Benjamin Baier <programmer at netzbasis.de>
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/engine.c | 6 |
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) | |||
| 96 | static int | 96 | static int |
| 97 | append_buf(char **buf, const char *s, int *size, int step) | 97 | append_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; |
