diff options
| author | 2022-01-18 14:33:06 +0000 | |
|---|---|---|
| committer | 2022-01-18 14:33:06 +0000 | |
| commit | 40035385c6ecee61de82b18ff5f823a1ef4db871 (patch) | |
| tree | a705ad2f3097b2e1310e5e579078f5e54234681c /src/inspsocket.cpp | |
| parent | Use C++11-style initialisation for the entity map in httpd_stats. (diff) | |
Add constexpr to the initialisation of various const static fields.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 5e0654fab..df2cdd6bf 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -214,7 +214,7 @@ long StreamSocket::ReadToRecvQ(std::string& rq) } /* Don't try to prepare huge blobs of data to send to a blocked socket */ -static const int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; +static constexpr int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; void StreamSocket::DoWrite() { |
