X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..479b8853c2ab18c98926a9369a03888021e9b986:/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index e371e45a..809afec6 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -327,7 +327,7 @@ int CHG_USER::Start(void *, const char * el, const char ** attr) { long int creditExpire = 0; if (str2x(attr[1], creditExpire) == 0) - m_ucr.creditExpire = (time_t)creditExpire; + m_ucr.creditExpire = creditExpire; return 0; } @@ -558,7 +558,7 @@ int CHG_USER::ApplyChanges() userdata.push_back(u->GetProperties().userdata8.GetPointer()); userdata.push_back(u->GetProperties().userdata9.GetPointer()); - for (int i = 0; i < (int)userdata.size(); i++) + for (size_t i = 0; i < userdata.size(); i++) if (!m_ucr.userdata[i].empty()) if(!userdata[i]->Set(m_ucr.userdata[i].const_data(), m_currAdmin, m_login, m_store)) return -1;