repo: ngircd action: commit revision: path_from: revision_from: 3358ad07d78f82f6aad973f56667be9f24e00563: path_to: revision_to:
commit 3358ad07d78f82f6aad973f56667be9f24e00563 Author: Alexander BartonDate: Sun Jul 27 15:58:06 2008 +0200 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
--- 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;
-----END OF PAGE-----