1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

Rename a parameter in sys/time.h so that you don't get warnings for things

like libdialog that include both this header and math.h.
This commit is contained in:
David Chisnall 2013-06-17 15:30:47 +00:00
parent 76f8eb196c
commit 0f78a367ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251855

View File

@ -103,17 +103,17 @@ bintime_mul(struct bintime *bt, u_int x)
}
static __inline void
bintime_shift(struct bintime *bt, int exp)
bintime_shift(struct bintime *__bt, int __exp)
{
if (exp > 0) {
bt->sec <<= exp;
bt->sec |= bt->frac >> (64 - exp);
bt->frac <<= exp;
} else if (exp < 0) {
bt->frac >>= -exp;
bt->frac |= (uint64_t)bt->sec << (64 + exp);
bt->sec >>= -exp;
if (__exp > 0) {
__bt->sec <<= __exp;
__bt->sec |= __bt->frac >> (64 - __exp);
__bt->frac <<= __exp;
} else if (__exp < 0) {
__bt->frac >>= -__exp;
__bt->frac |= (uint64_t)__bt->sec << (64 + __exp);
__bt->sec >>= -__exp;
}
}