X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fext2.c;h=f46bac9ac474e86a4e6e16bd6257131654fee9fd;hp=14cbb3c913254320e2460f8560557aeddea8bcd3;hb=2d9953097b6d3b71122d444a4550047e97aee009;hpb=3e70b34eed5a48640e20fbf6dcba774aaace1f3c diff --git a/daemon/ext2.c b/daemon/ext2.c index 14cbb3c..f46bac9 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -20,6 +20,7 @@ #include #include +#include #include #include "../src/guestfs_protocol.h" @@ -78,9 +79,9 @@ do_tune2fs_l (const char *device) free (out); return NULL; } - if (strcmp (colon, "") == 0 || - strcmp (colon, "") == 0 || - strcmp (colon, "(none)") == 0) { + if (STREQ (colon, "") || + STREQ (colon, "") || + STREQ (colon, "(none)")) { if (add_string (&ret, &size, &alloc, "") == -1) { free (out); return NULL;