projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make most implicit integer truncations and sign conversions explicit
[folly.git]
/
folly
/
portability
/
Sockets.cpp
diff --git
a/folly/portability/Sockets.cpp
b/folly/portability/Sockets.cpp
index 11c319a3adcbdbb268f73422a77a0a6b53fac591..68f70c860681a8821ea541a32801394a22dd24f6 100755
(executable)
--- a/
folly/portability/Sockets.cpp
+++ b/
folly/portability/Sockets.cpp
@@
-134,7
+134,7
@@
int inet_aton(const char* cp, struct in_addr* inp) {
}
const char* inet_ntop(int af, const void* src, char* dst, socklen_t size) {
- return ::inet_ntop(af, (char*)src, dst, size);
+ return ::inet_ntop(af, (char*)src, dst, size
_t(size)
);
}
int listen(int s, int backlog) {