diff --git a/repos/base/include/util/retry.h b/repos/base/include/util/retry.h index afbaf2c86a..abd62f395f 100644 --- a/repos/base/include/util/retry.h +++ b/repos/base/include/util/retry.h @@ -38,7 +38,7 @@ namespace Genode { */ template auto Genode::retry(FUNC func, HANDLER handler, - unsigned attempts = ~0U) -> decltype(func()) + unsigned attempts) -> decltype(func()) { for (unsigned i = 0; attempts == ~0U || i < attempts; i++) try { return func(); }