Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix build break on win32

Change-Id: I3b317e6d6a0d6123e73067d88aba194c54ed00bf
Reviewed-on: http://review.couchbase.org/24988
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  • Loading branch information...
commit 8130fd479ee8592e73fccbd3253da132fd7c107b 1 parent d551fa7
@trondn trondn authored avsej committed
Showing with 2 additions and 1 deletion.
  1. +1 −0  src/config_static.h
  2. +1 −1  src/instance.c
View
1  src/config_static.h
@@ -94,6 +94,7 @@
#include "win32/win_errno_sock.h"
#define snprintf _snprintf
#define strcasecmp(a,b) _stricmp(a,b)
+#define strncasecmp(a,b,c) _strnicmp(a,b,c)
#undef strdup
#define strdup _strdup
#else
View
2  src/instance.c
@@ -136,10 +136,10 @@ static lcb_error_t validate_hostname(const char *host, char **realhost)
path = strchr(host, '/');
if (path != NULL) {
+ size_t size;
if (strcmp(path, "/pools") != 0 && strcmp(path, "/pools/") != 0) {
return LCB_INVALID_HOST_FORMAT;
}
- size_t size;
size = path - host;
len = (int)size;
}
Please sign in to comment.
Something went wrong with that request. Please try again.