diff options
| author | Alexander Barton <alex@barton.de> | 2008-07-27 15:58:06 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-07-27 15:58:06 +0200 |
| commit | 3358ad07d78f82f6aad973f56667be9f24e00563 (patch) | |
| tree | 27fcdcb88ed144d3762d4438db905dfcaa00ea52 /src | |
| parent | 318c8b238b1a562578e994450cb9fd08b6b65873 (diff) | |
| download | ngircd-3358ad07d78f82f6aad973f56667be9f24e00563.tar.gz ngircd-3358ad07d78f82f6aad973f56667be9f24e00563.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |