(getminleft): Parameter hours unused since the previous rev., remove.

Change parameter mpd from int * to int, because its only use is *mpd
as r-value.  Callers changed.
This commit is contained in:
Markus Armbruster 2004-04-04 14:07:51 +00:00
parent 05acaece48
commit 2df3f002e1
3 changed files with 5 additions and 8 deletions

View file

@ -199,19 +199,16 @@ daychange(time_t now)
}
int
getminleft(time_t now, int *hour, int *mpd)
getminleft(time_t now, int mpd)
{
s_char *bp;
struct tm *tm;
int nminleft;
int curtime;
struct natstr *natp;
int n;
tm = localtime(&now);
curtime = tm->tm_min + tm->tm_hour * 60;
natp = getnatp(player->cnum);
nminleft = *mpd - natp->nat_minused;
nminleft = mpd - natp->nat_minused;
n = 60 * 24 - (tm->tm_min + tm->tm_hour * 60);
if (n < nminleft)
nminleft = n;