Fix t_diff(): declaration of 'div' shadows a global declaration

This patch fixes the following GCC warning message:
irc-info.c:422: warning: declaration of 'div' shadows a global declaration
This commit is contained in:
Alexander Barton 2008-07-27 15:58:06 +02:00
parent 318c8b238b
commit 3358ad07d7
1 changed files with 3 additions and 4 deletions

View File

@ -419,13 +419,12 @@ IRC_NAMES( CLIENT *Client, REQUEST *Req )
static unsigned int
t_diff(time_t *t, const time_t div)
t_diff(time_t *t, const time_t d)
{
time_t diff, remain;
diff = *t / div;
remain = diff * div;
diff = *t / d;
remain = diff * d;
*t -= remain;
return diff;