diff --git a/src/Permission.cxx b/src/Permission.cxx index a31c3a48e..f9e59951c 100644 --- a/src/Permission.cxx +++ b/src/Permission.cxx @@ -131,7 +131,8 @@ initPermissions(const ConfigData &config) #endif } -int getPermissionFromPassword(char const* password, unsigned* permission) +int +getPermissionFromPassword(const char *password, unsigned *permission) noexcept { auto i = permission_passwords.find(password); if (i == permission_passwords.end()) @@ -141,7 +142,8 @@ int getPermissionFromPassword(char const* password, unsigned* permission) return 0; } -unsigned getDefaultPermissions(void) +unsigned +getDefaultPermissions() noexcept { return permission_default; } diff --git a/src/Permission.hxx b/src/Permission.hxx index ae6c7fd49..a9e8dd7f0 100644 --- a/src/Permission.hxx +++ b/src/Permission.hxx @@ -30,10 +30,11 @@ static constexpr unsigned PERMISSION_ADD = 2; static constexpr unsigned PERMISSION_CONTROL = 4; static constexpr unsigned PERMISSION_ADMIN = 8; -int getPermissionFromPassword(char const* password, unsigned* permission); +int +getPermissionFromPassword(const char *password, unsigned *permission) noexcept; unsigned -getDefaultPermissions(); +getDefaultPermissions() noexcept; #ifdef HAVE_UN unsigned