X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrub.c;h=657abbba0cbedfab766994e1ab26f306be621199;hb=4d8efdd4552874092263bf567701c3459b05a780;hp=86e812e9a49c725936f8e6853c0b88d3b61ae90e;hpb=0f2e9c84e9ff1071260770930068642ecc8ac0d9;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 86e812e..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); - IS_DEVICE (device, -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1;