X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrub.c;h=657abbba0cbedfab766994e1ab26f306be621199;hb=09d988e8f1cfa42ef9a5abe5c9c151962aa1d2cc;hp=84766197466675e4a19c9150d91845691e5af42a;hpb=6bda071b5cd8393b37653687027c4ae6c6cf3804;p=libguestfs.git diff --git a/daemon/grub.c b/daemon/grub.c index 8476619..657abbb 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -26,15 +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 (return -1); - ABS_PATH (root, return -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1;