We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46138e commit 4eee8e1Copy full SHA for 4eee8e1
trantor/utils/MsgBuffer.h
@@ -75,13 +75,11 @@ class MsgBuffer
75
void append(const char (&buf)[N])
76
{
77
assert(strnlen(buf, N) == N - 1);
78
- ensureWritableBytes(N - 1);
79
append(buf, N - 1);
80
}
81
void append(const char *buf, size_t len);
82
void append(const std::string &buf)
83
84
- ensureWritableBytes(buf.length());
85
append(buf.c_str(), buf.length());
86
87
trantor/utils/WindowsSupport.h
@@ -19,7 +19,7 @@
19
struct iovec
20
21
void *iov_base; /* Starting address */
22
- int iov_len; /* Number of bytes */
+ int iov_len; /* Number of bytes */
23
};
24
25
int readv(int fd, const struct iovec *vector, int count);
0 commit comments