X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fzero.c;h=ce45ae233c91dfa5ac6be33b699bb759c37f9021;hb=801e7d8418927e4308b8cb0a079015bbc9212d5e;hp=ba87e68bb4e662f805b1e204e92b07adcdb2b3d7;hpb=1997858e90da728287ef26a6d01a5766ac914312;p=libguestfs.git diff --git a/daemon/zero.c b/daemon/zero.c index ba87e68..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]; - RESOLVE_DEVICE (device, return -1); - fd = open (device, O_WRONLY); if (fd == -1) { reply_with_perror ("%s", device);