libc: replace enum by static constexpr (C++20)

Related to issue 
This commit is contained in:
Norman Feske 2023-05-15 17:53:58 +02:00 committed by Christian Helmuth
parent 8e32e7a14e
commit a12fcfea0d

@ -33,9 +33,9 @@ struct Libc::Clone_session : Session
{
static const char *service_name() { return "Clone"; }
enum { BUFFER_SIZE = 512*1024UL,
RAM_QUOTA = BUFFER_SIZE + 4096,
CAP_QUOTA = 2 };
static constexpr size_t BUFFER_SIZE = 512*1024;
static constexpr size_t RAM_QUOTA = BUFFER_SIZE + 4096;
static constexpr unsigned CAP_QUOTA = 2;
struct Memory_range
{