From: Richard Jones Date: Wed, 15 Apr 2009 09:52:37 +0000 (+0100) Subject: Remove 'df' program from examples - didn't ever work. X-Git-Tag: 0.9.2~6 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=197f0ceeac625a20b923b274c6025eb0ccaeaed1;p=libguestfs.git Remove 'df' program from examples - didn't ever work. --- diff --git a/examples/Makefile.am b/examples/Makefile.am index cafb7f9..d2187cb 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,13 +1,9 @@ # libguestfs examples -noinst_PROGRAMS = df hello - -df_SOURCES = df.c -df_CFLAGS = -I$(top_builddir)/src -Wall -df_LDADD = $(top_builddir)/src/libguestfs.la +noinst_PROGRAMS = hello hello_SOURCES = hello.c hello_CFLAGS = -I$(top_builddir)/src -Wall hello_LDADD = $(top_builddir)/src/libguestfs.la -CLEANFILES = *~ +CLEANFILES = *~ $(noinst_PROGRAMS) diff --git a/examples/df.c b/examples/df.c deleted file mode 100644 index 4951a1b..0000000 --- a/examples/df.c +++ /dev/null @@ -1,29 +0,0 @@ -/* A simple "df" command for guests. */ - -#include -#include -#include -#include - -int -main (int argc, char *argv[]) -{ - guestfs_h *g; - - if (argc != 2 || access (argv[1], F_OK) != 0) { - fprintf (stderr, "Usage: df disk-image\n"); - exit (1); - } - - if (!(g = guestfs_create ())) exit (1); - - if (guestfs_add_drive (g, argv[1]) == -1) exit (1); - - if (guestfs_launch (g) == -1) exit (1); - if (guestfs_wait_ready (g) == -1) exit (1); - - - - guestfs_close (g); - return 0; -}