X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fzero.c;h=ce45ae233c91dfa5ac6be33b699bb759c37f9021;hp=2c20abc3757577e393c4d3bec3fa920f9421fca6;hb=e82d864e02f7ab36881c6cda2798bb76370ee6c7;hpb=62df226f26bd6ac3c481a7790eb89d760d2f0386 diff --git a/daemon/zero.c b/daemon/zero.c index 2c20abc..ce45ae2 100644 --- a/daemon/zero.c +++ b/daemon/zero.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 @@ -33,8 +33,6 @@ 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);