diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,10 +112,10 @@ extern void fatalError(char *s, ...) | |||
112 | exit( FALSE); | 112 | exit( FALSE); |
113 | } | 113 | } |
114 | 114 | ||
115 | #if defined (BB_INIT) || defined (BB_PS) | 115 | #if defined BB_INIT |
116 | /* Returns kernel version encoded as major*65536 + minor*256 + patch, | 116 | /* Returns kernel version encoded as major*65536 + minor*256 + patch, |
117 | * so, for example, to check if the kernel is greater than 2.2.11: | 117 | * so, for example, to check if the kernel is greater than 2.2.11: |
118 | * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } | 118 | * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } |
119 | */ | 119 | */ |
120 | int get_kernel_revision() | 120 | int get_kernel_revision() |
121 | { | 121 | { |
@@ -129,7 +129,7 @@ int get_kernel_revision() | |||
129 | sscanf(name.version, "%d.%d.%d", &major, &minor, &patch); | 129 | sscanf(name.version, "%d.%d.%d", &major, &minor, &patch); |
130 | return major * 65536 + minor * 256 + patch; | 130 | return major * 65536 + minor * 256 + patch; |
131 | } | 131 | } |
132 | #endif /* BB_INIT || BB_PS */ | 132 | #endif /* BB_INIT */ |
133 | 133 | ||
134 | #if defined (BB_CP_MV) || defined (BB_DU) | 134 | #if defined (BB_CP_MV) || defined (BB_DU) |
135 | 135 | ||