mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
rx: Fix bracing on rx_clock macro arguments
Add brackets around the arguments in the clock helper macros, so that these can be called with more complex parameters. Change-Id: I09b333dcde96ef56fab8d5ada89eb0744cdb1690 Reviewed-on: http://gerrit.openafs.org/3030 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
290495fab1
commit
da18ca4175
@ -135,10 +135,10 @@ extern int clock_nUpdates;
|
||||
(c1)->sec += (c2)->sec; \
|
||||
END
|
||||
|
||||
#define USEC(cp) ((cp->sec * 1000000) + cp->usec)
|
||||
#define MSEC(cp) ((cp->sec * 1000) + (cp->usec / 1000))
|
||||
#define _4THMSEC(cp) ((cp->sec * 4000) + (cp->usec / 250))
|
||||
#define _8THMSEC(cp) ((cp->sec * 8000) + (cp->usec / 125))
|
||||
#define USEC(cp) (((cp)->sec * 1000000) + (cp)->usec)
|
||||
#define MSEC(cp) (((cp)->sec * 1000) + ((cp)->usec / 1000))
|
||||
#define _4THMSEC(cp) (((cp)->sec * 4000) + ((cp)->usec / 250))
|
||||
#define _8THMSEC(cp) (((cp)->sec * 8000) + ((cp)->usec / 125))
|
||||
|
||||
/* Add ms milliseconds to time c1. Both ms and c1 must be positive */
|
||||
#define clock_Addmsec(c1, ms) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user