search for: 17e74ea

Displaying 2 results from an estimated 2 matches for "17e74ea".

Did you mean: 6a7e74ea
2009 Nov 20
1
[PATCH libguestfs] maint: remove unnecessary include of openat.h
...50:54 +0100 Subject: [PATCH libguestfs] maint: remove unnecessary include of openat.h * daemon/realpath.c: Don't include "openat.h". not used. --- daemon/realpath.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/daemon/realpath.c b/daemon/realpath.c index 17e74ea..750cadb 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -27,8 +27,6 @@ #include <sys/types.h> #include <dirent.h> -#include "openat.h" - #include "daemon.h" #include "actions.h" -- 1.6.5.3.433.g11067
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...D, char *const *argv MAYBE_UNUSED) argc++; for (i = 0; cmds[i].cmd != NULL; ++i) { - if (strcasecmp (subcmd, cmds[i].cmd) == 0) + if (STRCASEEQ (subcmd, cmds[i].cmd)) return cmds[i].f (subcmd, argc, argv); } diff --git a/daemon/realpath.c b/daemon/realpath.c index 0dc5fa5..17e74ea 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -113,7 +113,7 @@ do_case_sensitive_path (const char *path) errno = 0; while ((d = readdir (dir)) != NULL) { - if (strcasecmp (d->d_name, name) == 0) + if (STRCASEEQ (d->d_name, name)) break; } diff -...