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:
parent
318c8b238b
commit
3358ad07d7
|
@ -419,13 +419,12 @@ IRC_NAMES( CLIENT *Client, REQUEST *Req )
|
||||||
|
|
||||||
|
|
||||||
static unsigned int
|
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;
|
time_t diff, remain;
|
||||||
|
|
||||||
diff = *t / div;
|
diff = *t / d;
|
||||||
|
remain = diff * d;
|
||||||
remain = diff * div;
|
|
||||||
*t -= remain;
|
*t -= remain;
|
||||||
|
|
||||||
return diff;
|
return diff;
|
||||||
|
|
Loading…
Reference in New Issue