]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix t_diff(): declaration of 'div' shadows a global declaration
authorAlexander Barton <alex@barton.de>
Sun, 27 Jul 2008 13:58:06 +0000 (15:58 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 27 Jul 2008 13:58:06 +0000 (15:58 +0200)
This patch fixes the following GCC warning message:
irc-info.c:422: warning: declaration of 'div' shadows a global declaration

src/ngircd/irc-info.c

index 000cb848f82f92df6f4760a32e20c7b4ccdcd165..808a85703fa48defffe9128fe2cb503beb3533bd 100644 (file)
@@ -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;