X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/45284d7e924b1ac340ba527301e90e1199af3011..a8f0f5a52af09cc0c0bcd08d64a1166b7502a424:/include/stg/user_conf.h 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;