search for: 252c02c

Displaying 2 results from an estimated 2 matches for "252c02c".

Did you mean: 252024
2009 Nov 25
1
[PATCH] daemon/Win32: Replace pread on platforms that don't have this function.
.....e70f05e 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -180,6 +180,7 @@ AC_CHECK_FUNCS([\ lremovexattr \ mknod \ posix_fallocate \ + pread \ removexattr \ setxattr \ sync]) diff --git a/daemon/file.c b/daemon/file.c index 252c02c..e6bbc19 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -402,6 +402,7 @@ do_pread (const char *path, int count, int64_t offset, size_t *size_r) return NULL; } +#ifdef HAVE_PREAD r = pread (fd, buf, count, offset); if (r == -1) { reply_with_perror ("pread: %s", path...
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...|| + STREQ (colon, "<not available>") || + STREQ (colon, "(none)")) { if (add_string (&ret, &size, &alloc, "") == -1) { free (out); return NULL; diff --git a/daemon/file.c b/daemon/file.c index 62de116..252c02c 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -481,9 +481,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,...