X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fcmp.c;h=2b7e33b508bfef7d80af37807d001b961ba535d3;hp=a2d92a33c51573a66257f99f979279f1fc822778;hb=2eb19f526164a978c373a760deb30854d56b62ce;hpb=78029b529ad98769685d607230b70f71832d5906 diff --git a/daemon/cmp.c b/daemon/cmp.c index a2d92a3..2b7e33b 100644 --- a/daemon/cmp.c +++ b/daemon/cmp.c @@ -28,16 +28,12 @@ #include "actions.h" int -do_equal (char *file1, char *file2) +do_equal (const char *file1, const char *file2) { char *file1buf, *file2buf; char *err; int r; - NEED_ROOT (-1); - ABS_PATH (file1, -1); - ABS_PATH (file2, -1); - file1buf = sysroot_path (file1); if (file1buf == NULL) { reply_with_perror ("malloc");