summaryrefslogtreecommitdiffstats
path: root/fish/alloc.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-15 23:54:51 +0100
committerRichard Jones <rjones@redhat.com>2009-04-15 23:54:51 +0100
commit05712b2457a44ee0f0020eced77db03c2aa419a1 (patch)
treeef1c0831f9215a61223221d068470aeab5bc1ab7 /fish/alloc.c
parent54a6c3212ce1f942979639d2f2bd726414fff7c2 (diff)
downloadlibguestfs-05712b2457a44ee0f0020eced77db03c2aa419a1.tar.gz
libguestfs-05712b2457a44ee0f0020eced77db03c2aa419a1.tar.xz
libguestfs-05712b2457a44ee0f0020eced77db03c2aa419a1.zip
'guestfish edit' commands and several bugfixes.
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 8979acf4..594d0a56 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -30,7 +30,7 @@
static int parse_size (const char *str, off_t *size_rtn);
int
-do_alloc (int argc, char *argv[])
+do_alloc (const char *cmd, int argc, char *argv[])
{
off_t size;
int fd;
@@ -48,7 +48,7 @@ do_alloc (int argc, char *argv[])
return -1;
}
- fd = open (argv[0], O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
+ fd = open (argv[0], O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC, 0666);
if (fd == -1) {
perror (argv[0]);
return -1;