projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update for fatal()
[awesomized/libmemcached]
/
libmemcached
/
io.cc
diff --git
a/libmemcached/io.cc
b/libmemcached/io.cc
index 48c0de6c7c2d81620d8c3d5d1cbd2dae80b3e382..e0c6284bfe94014f3854ee5922d660b493b4fcdd 100644
(file)
--- a/
libmemcached/io.cc
+++ b/
libmemcached/io.cc
@@
-675,7
+675,7
@@
memcached_server_write_instance_st memcached_io_get_readable_server(memcached_st
{
#define MAX_SERVERS_TO_POLL 100
struct pollfd fds[MAX_SERVERS_TO_POLL];
{
#define MAX_SERVERS_TO_POLL 100
struct pollfd fds[MAX_SERVERS_TO_POLL];
-
unsigned in
t host_index= 0;
+
nfds_
t host_index= 0;
for (uint32_t x= 0; x < memcached_server_count(memc) and host_index < MAX_SERVERS_TO_POLL; ++x)
{
for (uint32_t x= 0; x < memcached_server_count(memc) and host_index < MAX_SERVERS_TO_POLL; ++x)
{
@@
-722,7
+722,7
@@
memcached_server_write_instance_st memcached_io_get_readable_server(memcached_st
break;
default:
break;
default:
- for (
ptrdiff
_t x= 0; x < host_index; ++x)
+ for (
nfds
_t x= 0; x < host_index; ++x)
{
if (fds[x].revents & POLLIN)
{
{
if (fds[x].revents & POLLIN)
{