1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +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:
Alexander Barton 2008-07-27 15:58:06 +02:00
parent 318c8b238b
commit 3358ad07d7

View File

@ -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;