mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user