diff options
author | Jordan Bayles <jophba@chromium.org> | 2020-09-29 12:01:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 19:42:12 +0000 |
commit | a528cef8c93efde2f2f62ec461b835bc8e8434b8 (patch) | |
tree | f9b7ce88935fdd5495492d3e1a7f8bbe79efa9db /cast/common | |
parent | 9b07ca0111b39ce7e57925f7a7baa2df20e0b067 (diff) | |
download | openscreen-a528cef8c93efde2f2f62ec461b835bc8e8434b8.tar.gz |
Fix PEM_read calls
This patch moves PEM_read calls to using long types plus NOLINT
directives.
Change-Id: Ib8196599ac8b51deba623f48b252ab8a229b2563
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2438680
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/common')
-rw-r--r-- | cast/common/certificate/testing/test_helpers.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cast/common/certificate/testing/test_helpers.cc b/cast/common/certificate/testing/test_helpers.cc index c28269de..09bf26b2 100644 --- a/cast/common/certificate/testing/test_helpers.cc +++ b/cast/common/certificate/testing/test_helpers.cc @@ -33,9 +33,8 @@ SignatureTestData ReadSignatureTestData(absl::string_view filename) { char* name; char* header; unsigned char* data; - int64_t length; - while (PEM_read(fp, &name, &header, &data, - reinterpret_cast<long*>(&length)) == 1) { + long length; // NOLINT + while (PEM_read(fp, &name, &header, &data, &length) == 1) { if (strcmp(name, "MESSAGE") == 0) { OSP_DCHECK(!result.message.data); result.message.data = data; |