X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fzero.c;h=864e9a66ec17295e6e7e47ea741e600c32b81649;hb=0c07f0d23698798475e0d09491812aca52440328;hp=9d793e1509ec7b6a6b41cf6582dced4600902206;hpb=56bef498f46ac3dd580f4bde3c8f3ed2fe688826;p=libguestfs.git diff --git a/daemon/zero.c b/daemon/zero.c index 9d793e1..864e9a6 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 (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);