X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fzero.c;h=ce45ae233c91dfa5ac6be33b699bb759c37f9021;hb=ff2f3fc656b62ba4291ddb4a7238426c446db7c3;hp=9c803d8cb3f4e8806e58c0b04c290939a50aa085;hpb=a7b73d4a1e09f12b2002083618056f0c823c1dcf;p=libguestfs.git diff --git a/daemon/zero.c b/daemon/zero.c index 9c803d8..ce45ae2 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -28,13 +28,11 @@ #include "actions.h" int -do_zero (char *device) +do_zero (const char *device) { int fd, i; char buf[4096]; - IS_DEVICE (device, -1); - fd = open (device, O_WRONLY); if (fd == -1) { reply_with_perror ("%s", device);