diff options
| author | jsing <> | 2017-01-12 16:18:39 +0000 |
|---|---|---|
| committer | jsing <> | 2017-01-12 16:18:39 +0000 |
| commit | 3c81f613c5bde56eafdf22727a83051f146e9ba8 (patch) | |
| tree | db767db796a9cfa4c97a17f7ebd37b945f78c55a /src | |
| parent | 962789d231902058f14a8357f288b49d250702eb (diff) | |
| download | openbsd-3c81f613c5bde56eafdf22727a83051f146e9ba8.tar.gz openbsd-3c81f613c5bde56eafdf22727a83051f146e9ba8.tar.bz2 openbsd-3c81f613c5bde56eafdf22727a83051f146e9ba8.zip | |
Inline strlen() call to reduce/simplify code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libtls/tls_bio_cb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libtls/tls_bio_cb.c b/src/lib/libtls/tls_bio_cb.c index 034cbd60bf..0091808fc2 100644 --- a/src/lib/libtls/tls_bio_cb.c +++ b/src/lib/libtls/tls_bio_cb.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls_bio_cb.c,v 1.18 2017/01/12 16:17:22 jsing Exp $ */ | 1 | /* $OpenBSD: tls_bio_cb.c,v 1.19 2017/01/12 16:18:39 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2016 Tobias Pape <tobias@netshed.de> | 3 | * Copyright (c) 2016 Tobias Pape <tobias@netshed.de> |
| 4 | * | 4 | * |
| @@ -47,10 +47,7 @@ bio_s_cb(void) | |||
| 47 | static int | 47 | static int |
| 48 | bio_cb_puts(BIO *bio, const char *str) | 48 | bio_cb_puts(BIO *bio, const char *str) |
| 49 | { | 49 | { |
| 50 | int n; | 50 | return (bio_cb_write(bio, str, strlen(str))); |
| 51 | |||
| 52 | n = strlen(str); | ||
| 53 | return (bio_cb_write(bio, str, n)); | ||
| 54 | } | 51 | } |
| 55 | 52 | ||
| 56 | static long | 53 | static long |
