X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdebug.c;h=5d26c4e48bb6bbc544d70c0da4c5da5abc9c3825;hp=04c52f0050f4f5b167096c23426efc9c5ff69654;hb=f8210da95888f0060b25dcca2ae299d5c16ff814;hpb=9353c6253d5fac1648b13ad9958468a2d9f6ad6f diff --git a/daemon/debug.c b/daemon/debug.c index 04c52f0..5d26c4e 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); @@ -215,7 +215,7 @@ debug_sh (const char *subcmd, int argc, char *const *const argv) char *out; if (argc < 1) { - reply_with_error ("debug: sh: expecting a command to run"); + reply_with_error ("sh: expecting a command to run"); return NULL; }