Remove another decltype(fclose)

See https://boringssl-review.googlesource.com/c/boringssl/+/62465. I
missed a spot.

Bug: 643
Change-Id: I2824853e37cac9112a9947fb794517e259f2bcc1
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/62645
Reviewed-by: Bob Beck <bbe@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
chromium-stable
David Benjamin 1 year ago committed by Boringssl LUCI CQ
parent 79532afc45
commit e3d9b69e8c
  1. 7
      crypto/bio/bio_test.cc

@ -633,8 +633,11 @@ TEST(BIOTest, Gets) {
check_bio_gets(bio.get());
}
using ScopedFILE = std::unique_ptr<FILE, decltype(&fclose)>;
ScopedFILE file(tmpfile(), fclose);
struct FileCloser {
void operator()(FILE *f) const { fclose(f); }
};
using ScopedFILE = std::unique_ptr<FILE, FileCloser>;
ScopedFILE file(tmpfile());
#if defined(OPENSSL_ANDROID)
// On Android, when running from an APK, |tmpfile| does not work. See
// b/36991167#comment8.

Loading…
Cancel
Save