X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/45284d7e924b1ac340ba527301e90e1199af3011..c1b9be104712ea200385bd4f7d76f185a2d76eb7:/include/stg/user_conf.h?ds=sidebyside diff --git a/include/stg/user_conf.h b/include/stg/user_conf.h index dcc19afa..5d65fcee 100644 --- a/include/stg/user_conf.h +++ b/include/stg/user_conf.h @@ -77,7 +77,7 @@ struct USER_CONF_RES group(), credit(), nextTariff(), - userdata(USERDATA_NUM, RESETABLE()), + userdata(USERDATA_NUM), creditExpire(), ips() { @@ -100,10 +100,7 @@ struct USER_CONF_RES group = uc.group; credit = uc.credit; nextTariff = uc.nextTariff; - for (int i = 0; i < USERDATA_NUM; i++) - { - userdata[i] = uc.userdata[i]; - } + for (size_t i = 0; i < USERDATA_NUM; i++) userdata[i] = uc.userdata[i]; creditExpire = uc.creditExpire; ips = uc.ips; return *this;