X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fcmp.c;h=56717c55cb5379505f834ad80502d9a9818fccfb;hb=1f0810eb3a98cbfd347af59b6b9bc624ddff6028;hp=a2d92a33c51573a66257f99f979279f1fc822778;hpb=78029b529ad98769685d607230b70f71832d5906;p=libguestfs.git diff --git a/daemon/cmp.c b/daemon/cmp.c index a2d92a3..56717c5 100644 --- a/daemon/cmp.c +++ b/daemon/cmp.c @@ -28,15 +28,15 @@ #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); + NEED_ROOT (return -1); + ABS_PATH (file1, return -1); + ABS_PATH (file2, return -1); file1buf = sysroot_path (file1); if (file1buf == NULL) {