Changeset 1375 in MondoRescue for branches/2.2.4/mondo/src/common/libmondo-tools.c
- Timestamp:
- Apr 30, 2007, 11:18:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.4/mondo/src/common/libmondo-tools.c
r1372 r1375 184 184 #include <netinet/in.h> 185 185 #include <arpa/inet.h> 186 #include <sys/utsname.h> 186 187 187 188 /*@unused@*/ … … 358 359 359 360 360 char *get_architecture() 361 { 361 char *get_architecture(void) { 362 362 #ifdef __IA32__ 363 return ("i386"); 363 # ifdef __X86_64__ 364 return ("x86_64"); 365 # else 366 return ("i386"); 367 # endif 364 368 #endif 365 369 #ifdef __IA64__ … … 370 374 371 375 372 373 double get_kernel_version() 376 char *get_uname_m(void) { 377 378 struct utsname utsn; 379 char *tmp = NULL; 380 381 uname(&utsn); 382 mr_asprintf(&tmp, utsn.machine); 383 return (tmp); 384 } 385 386 387 388 double get_kernel_version(void) 374 389 { 375 390 char *p, tmp[200];
Note:
See TracChangeset
for help on using the changeset viewer.