Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/libbb/kernel_version.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/libbb/kernel_version.c
r821 r1770 8 8 */ 9 9 10 #include <stdio.h>11 #include <string.h>12 #include <stdlib.h>13 10 #include <sys/utsname.h> /* for uname(2) */ 14 11 … … 28 25 if (uname(&name) == -1) { 29 26 bb_perror_msg("cannot get system information"); 30 return (0);27 return 0; 31 28 } 32 29 33 30 s = name.release; 34 31 r = 0; 35 for (i =0 ; i<3; i++) {32 for (i = 0; i < 3; i++) { 36 33 r = r * 256 + atoi(strtok(s, ".")); 37 34 s = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.