diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -194,19 +194,6 @@ set_free_pages() | |||
194 | fclose(f); | 194 | fclose(f); |
195 | } | 195 | } |
196 | 196 | ||
197 | static int | ||
198 | get_kernel_revision() | ||
199 | { | ||
200 | FILE *f; | ||
201 | int major=0, minor=0, patch=0; | ||
202 | |||
203 | f = fopen("/proc/sys/kernel/osrelease","r"); | ||
204 | fscanf(f,"%d.%d.%d",&major,&minor,&patch); | ||
205 | fclose(f); | ||
206 | return major*65536 + minor*256 + patch; | ||
207 | } | ||
208 | |||
209 | |||
210 | static void | 197 | static void |
211 | shutdown_system(void) | 198 | shutdown_system(void) |
212 | { | 199 | { |