--- projects/libstatgrab/examples/os_info.c 2004/01/19 16:49:19 1.6 +++ projects/libstatgrab/examples/os_info.c 2004/04/05 16:23:08 1.7 @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: os_info.c,v 1.6 2004/01/19 16:49:19 tdb Exp $ + * $Id: os_info.c,v 1.7 2004/04/05 16:23:08 tdb Exp $ */ #include @@ -27,18 +27,18 @@ int main(int argc, char **argv){ - general_stat_t *general_stats; + sg_host_info *general_stats; /* Initialise statgrab */ - statgrab_init(); + sg_init(); /* Drop setuid/setgid privileges. */ - if (statgrab_drop_privileges() != 0) { + if (sg_drop_privileges() != 0) { perror("Error. Failed to drop privileges"); return 1; } - general_stats = get_general_stats(); + general_stats = sg_get_host_info(); if(general_stats == NULL){ fprintf(stderr, "Failed to get os stats\n");