X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=daemon%2Fgrub.c;h=657abbba0cbedfab766994e1ab26f306be621199;hb=e82d864e02f7ab36881c6cda2798bb76370ee6c7;hp=118771fa0001d069f21113b59475fd5fba53e5e6;hpb=1997858e90da728287ef26a6d01a5766ac914312;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 118771f..657abbb 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -26,16 +26,12 @@ #include "actions.h" int -do_grub_install (char *root, char *device) +do_grub_install (const char *root, const char *device) { int r; char *err; char *buf; - NEED_ROOT (-1); - ABS_PATH (root, -1); - RESOLVE_DEVICE (device, return -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1;