X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fntfs.c;h=85deb654e035285b80f29422a641417018164c38;hp=87881b1ff048a1195208cd8db22be2fcd8e666db;hb=e94f89f40d989d111882178c87b5bfc22314fca8;hpb=887290e949d54c6ac4c9b787231e588f84f2367c diff --git a/daemon/ntfs.c b/daemon/ntfs.c index 87881b1..85deb65 100644 --- a/daemon/ntfs.c +++ b/daemon/ntfs.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 @@ -27,14 +27,12 @@ #include "actions.h" int -do_ntfs_3g_probe (int rw, char *device) +do_ntfs_3g_probe (int rw, const char *device) { char *err; int r; const char *rw_flag; - IS_DEVICE (device, -1); - rw_flag = rw ? "-w" : "-r"; r = commandr (NULL, &err, "ntfs-3g.probe", rw_flag, device, NULL);