Use SECS_PER_DAY instead of literal 86400

This commit is contained in:
Markus Armbruster 2011-04-16 21:05:06 +02:00
parent 2f05b844c1
commit 0563101703

View file

@ -229,7 +229,7 @@ loan_accept(struct ltcomstr *ltcp)
player->dolcost -= lp->l_amtdue; player->dolcost -= lp->l_amtdue;
lp->l_amtpaid = 0; lp->l_amtpaid = 0;
(void)time(&lp->l_lastpay); (void)time(&lp->l_lastpay);
lp->l_duedate = lp->l_ldur * 86400 + lp->l_lastpay; lp->l_duedate = lp->l_ldur * SECS_PER_DAY + lp->l_lastpay;
lp->l_status = LS_SIGNED; lp->l_status = LS_SIGNED;
if (!putloan(ltcp->num, lp)) { if (!putloan(ltcp->num, lp)) {
pr("Problem writing lp->to disk; get help!\n"); pr("Problem writing lp->to disk; get help!\n");