proc/version.h: Protect parameter in LINUX_VERSION() macro.

Just in case (no problematic use case at the moment).
This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent f1077b7a55
commit 59666e6255

View File

@ -30,7 +30,7 @@ extern "C" {
int procps_linux_version(void);
/* Convenience macros for composing/decomposing version codes */
#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + (z))
#define LINUX_VERSION_MAJOR(x) (((x)>>16) & 0xFF)
#define LINUX_VERSION_MINOR(x) (((x)>> 8) & 0xFF)
#define LINUX_VERSION_PATCH(x) ( (x) & 0xFF)