From: Tobias Urdin Date: Mon, 2 May 2022 13:26:31 +0000 (+0000) Subject: rgw/auth: static_cast uint64_t to time_t for set_expires X-Git-Tag: v18.1.0~1023^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c0167e81158c0ca66d007ecdbf4d99698311c3e;p=ceph.git rgw/auth: static_cast uint64_t to time_t for set_expires Signed-off-by: Tobias Urdin --- diff --git a/src/rgw/rgw_auth_keystone.cc b/src/rgw/rgw_auth_keystone.cc index 38b1c990ca8..fdd9e91fac5 100644 --- a/src/rgw/rgw_auth_keystone.cc +++ b/src/rgw/rgw_auth_keystone.cc @@ -342,7 +342,7 @@ TokenEngine::authenticate(const DoutPrefixProvider* dpp, << g_conf()->rgw_keystone_expired_token_cache_expiration << " secs = " << new_expires << dendl; - t->set_expires(new_expires); + t->set_expires(static_cast(new_expires)); } ldpp_dout(dpp, 0) << "validated token: " << t->get_project_name() << ":" << t->get_user_name()