projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix includes
[awesomized/libmemcached]
/
src
/
libmemcached
/
poll.cc
diff --git
a/src/libmemcached/poll.cc
b/src/libmemcached/poll.cc
index 81062caee33b658e1756f72f82c804b51be1ba48..5914aa47655236070f2e741b94d7da98e7e2121d 100644
(file)
--- a/
src/libmemcached/poll.cc
+++ b/
src/libmemcached/poll.cc
@@
-22,7
+22,7
@@
# endif
# include <time.h>
# if HAVE_STRINGS_H
# endif
# include <time.h>
# if HAVE_STRINGS_H
-# include <
strings.h
>
+# include <
cstrings
>
# endif
int poll(struct pollfd fds[], nfds_t nfds, int tmo) {
# endif
int poll(struct pollfd fds[], nfds_t nfds, int tmo) {
@@
-49,7
+49,7
@@
int poll(struct pollfd fds[], nfds_t nfds, int tmo) {
}
}
}
}
- struct timeval timeout = {
.tv_sec = tmo / 1000, .tv_usec =
(tmo % 1000) * 1000};
+ struct timeval timeout = {
tmo / 1000,
(tmo % 1000) * 1000};
struct timeval *tp = &timeout;
if (tmo == -1) {
tp = NULL;
struct timeval *tp = &timeout;
if (tmo == -1) {
tp = NULL;