X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdebug.c;h=cb905cb6e05509d34e3ada509b3954c02e903551;hb=b3c4ddc8634e8268b151dcbd7ddd35a7286f4f04;hp=04c52f0050f4f5b167096c23426efc9c5ff69654;hpb=9353c6253d5fac1648b13ad9958468a2d9f6ad6f;p=libguestfs.git diff --git a/daemon/debug.c b/daemon/debug.c index 04c52f0..cb905cb 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -150,7 +150,7 @@ debug_fds (const char *subcmd, int argc, char *const *const argv) } while ((d = readdir (dir)) != NULL) { - if (strcmp (d->d_name, ".") == 0 || strcmp (d->d_name, "..") == 0) + if (STREQ (d->d_name, ".") || STREQ (d->d_name, "..")) continue; snprintf (fname, sizeof fname, "/proc/self/fd/%s", d->d_name);