Commit Diff
- Commit:
3358ad07d78f82f6aad973f56667be9f24e00563
- From:
- Alexander Barton <alex@barton.de>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- src/ngircd/irc-info.c +++ 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;