--- projects/cms/source/ihost/libstatgrab/os_info.c 2002/05/13 14:42:11 1.1 +++ projects/cms/source/ihost/libstatgrab/os_info.c 2002/05/13 16:46:24 1.3 @@ -9,6 +9,7 @@ #include #include #include +#include #endif char *get_os_info(){ @@ -27,6 +28,7 @@ char *get_os_info(){ #ifdef FREEBSD struct timeval boottime; time_t curtime; + size_t size; #endif if((uname(&os)) < 0){ errf("Failed to get os stats (%m)"); @@ -90,13 +92,7 @@ char *get_os_info(){ #endif - xml_os_info=strf("%s%s%s%s%s%ld", os.sysname, os.release, os.version, os.nodename, os.machine, uptime); + xml_os_info=strf("%s%s%s%s%s%ld", os.sysname, os.release, os.version, os.nodename, os.machine, uptime); - printf("%s\n",xml_os_info); return xml_os_info; -} - -int main(){ - get_os_info(); - exit(0); }