summaryrefslogtreecommitdiffstats
path: root/fish/alloc.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-09-18 09:38:05 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-09-18 09:38:05 +0100
commit0003ea2c3dbaa7e22f4f616539136821d80694b8 (patch)
tree1a5bcededb436fb9f1a0e8e046599fdd0d5ae7f1 /fish/alloc.c
parent585fceb3350c17a3d6ed7f2daffd5e2b3e5fc3e1 (diff)
downloadlibguestfs-0003ea2c3dbaa7e22f4f616539136821d80694b8.tar.gz
libguestfs-0003ea2c3dbaa7e22f4f616539136821d80694b8.tar.xz
libguestfs-0003ea2c3dbaa7e22f4f616539136821d80694b8.zip
generator: Generate guestfish-only commands.
The guestfish-only commands such as 'alloc' and 'edit' are now generated from one place in the generator instead of being spread around ad-hoc in the C code.
Diffstat (limited to 'fish/alloc.c')
-rw-r--r--fish/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/alloc.c b/fish/alloc.c
index 29d9845b..0470d202 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -31,7 +31,7 @@
#include "fish.h"
int
-do_alloc (const char *cmd, int argc, char *argv[])
+run_alloc (const char *cmd, int argc, char *argv[])
{
if (argc != 2) {
fprintf (stderr, _("use 'alloc file size' to create an image\n"));
@@ -45,7 +45,7 @@ do_alloc (const char *cmd, int argc, char *argv[])
}
int
-do_sparse (const char *cmd, int argc, char *argv[])
+run_sparse (const char *cmd, int argc, char *argv[])
{
if (argc != 2) {
fprintf (stderr, _("use 'sparse file size' to create a sparse image\n"));