]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ssl/bio.cc
Maintenance: Removed most NULLs using modernize-use-nullptr (#1075)
[thirdparty/squid.git] / src / ssl / bio.cc
index 2913440be1a7e3594782d9f4c536d192d4c06c82..7217e81f8409d15f531c73204dee4755a2bf002d 100644 (file)
@@ -67,7 +67,7 @@ Ssl::Bio::Create(const int fd, Security::Io::Type type)
         BIO_meth_set_write(SquidMethods, squid_bio_write);
         BIO_meth_set_read(SquidMethods, squid_bio_read);
         BIO_meth_set_puts(SquidMethods, squid_bio_puts);
-        BIO_meth_set_gets(SquidMethods, NULL);
+        BIO_meth_set_gets(SquidMethods, nullptr);
         BIO_meth_set_ctrl(SquidMethods, squid_bio_ctrl);
         BIO_meth_set_create(SquidMethods, squid_bio_create);
         BIO_meth_set_destroy(SquidMethods, squid_bio_destroy);
@@ -81,7 +81,7 @@ Ssl::Bio::Create(const int fd, Security::Io::Type type)
         BIO_int_ctrl(bio, BIO_C_SET_FD, type, fd);
         return bio;
     }
-    return NULL;
+    return nullptr;
 }
 
 void
@@ -453,7 +453,7 @@ squid_bio_create(BIO *bi)
     // No need to set more, openSSL initialize BIO memory to zero.
 #endif
 
-    BIO_set_data(bi, NULL);
+    BIO_set_data(bi, nullptr);
     return 1;
 }
 
@@ -462,7 +462,7 @@ static int
 squid_bio_destroy(BIO *table)
 {
     delete static_cast<Ssl::Bio*>(BIO_get_data(table));
-    BIO_set_data(table, NULL);
+    BIO_set_data(table, nullptr);
     return 1;
 }