diff --git a/examples/Makefile.am b/examples/Makefile.am index 9984ca10..34f06fa1 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -17,8 +17,8 @@ EXTRA_PROGRAMS = third third_static first_SOURCES = first.c first_LDADD = $(top_builddir)/sysdeps/common/libgtop_common.la \ - $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ $(top_builddir)/lib/libgtop.la \ + $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ @INTLLIBS@ @LIBSUPPORT@ first_static_SOURCES = $(first_SOURCES) @@ -27,8 +27,8 @@ first_static_LDFLAGS = -static second_SOURCES = second.c second_LDADD = $(top_builddir)/sysdeps/common/libgtop_common.la \ - $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ $(top_builddir)/lib/libgtop.la \ + $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ @INTLLIBS@ @LIBSUPPORT@ second_static_SOURCES = $(second_SOURCES) @@ -43,9 +43,9 @@ endif third_SOURCES = third.c third_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \ $(third_guile_names_LIBS) $(third_names_LIBS) \ + $(top_builddir)/lib/libgtop.la \ $(top_builddir)/sysdeps/common/libgtop_common.la \ $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ - $(top_builddir)/lib/libgtop.la \ @GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@ third_static_SOURCES = $(third_SOURCES) diff --git a/examples/first.c b/examples/first.c index edd7e0eb..c4f32e6e 100644 --- a/examples/first.c +++ b/examples/first.c @@ -39,7 +39,7 @@ main (int argc, char *argv []) bindtextdomain (PACKAGE, GTOPLOCALEDIR); textdomain (PACKAGE); - glibtop_init__r (&glibtop_global_server); + glibtop_init (); glibtop_get_cpu (&data.cpu); diff --git a/examples/second.c b/examples/second.c index c3d1b0f5..9dbb73ce 100644 --- a/examples/second.c +++ b/examples/second.c @@ -39,7 +39,7 @@ main (int argc, char *argv []) bindtextdomain (PACKAGE, GTOPLOCALEDIR); textdomain (PACKAGE); - glibtop_init__r (&glibtop_global_server); + glibtop_init (); glibtop_get_sysdeps (&sysdeps);