From: Alexander Barton Date: Sun, 27 Jul 2008 13:58:06 +0000 (+0200) Subject: Fix t_diff(): declaration of 'div' shadows a global declaration X-Git-Tag: rel-13-rc1~78 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=3358ad07d78f82f6aad973f56667be9f24e00563 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 --- diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 000cb848..808a8570 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -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;