X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ffile.c;h=0b50eebd7fa66b00a284d81e6b1647d91b4bcb28;hp=62de1168e6dd80bcbef8f2de385e8c976d538692;hb=fd84feb8229f792e22e3cbfa9bf7e8156947eb2f;hpb=3e70b34eed5a48640e20fbf6dcba774aaace1f3c diff --git a/daemon/file.c b/daemon/file.c index 62de116..0b50eeb 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -44,11 +44,7 @@ do_touch (const char *path) return -1; } -#ifdef HAVE_FUTIMENS r = futimens (fd, NULL); -#else - r = futimes (fd, NULL); -#endif if (r == -1) { reply_with_perror ("futimens: %s", path); close (fd); @@ -481,9 +477,9 @@ do_zfile (const char *method, const char *path) FILE *fp; char line[256]; - if (strcmp (method, "gzip") == 0 || strcmp (method, "compress") == 0) + if (STREQ (method, "gzip") || STREQ (method, "compress")) zcat = "zcat"; - else if (strcmp (method, "bzip2") == 0) + else if (STREQ (method, "bzip2")) zcat = "bzcat"; else { reply_with_error ("zfile: unknown method");