X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fzerofree.c;h=457f8db05b3ccd68417421a96477696f873f6227;hb=6bda071b5cd8393b37653687027c4ae6c6cf3804;hp=b44965a0677f1654378e3c90f1871f8493618e2a;hpb=d901cc916102f1aaccfb73396b48aa303e5b8cd7;p=libguestfs.git diff --git a/daemon/zerofree.c b/daemon/zerofree.c index b44965a..457f8db 100644 --- a/daemon/zerofree.c +++ b/daemon/zerofree.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,13 +28,11 @@ #include "actions.h" int -do_zerofree (const char *device) +do_zerofree (char *device) { char *err; int r; - IS_DEVICE (device, -1); - r = command (NULL, &err, "/usr/sbin/zerofree", device, NULL); if (r == -1) { reply_with_error ("zerofree: %s: %s", device, err);