Skip to content

Commit 4eee8e1

Browse files
authored
Small modification (#74)
1 parent b46138e commit 4eee8e1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

trantor/utils/MsgBuffer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,11 @@ class MsgBuffer
7575
void append(const char (&buf)[N])
7676
{
7777
assert(strnlen(buf, N) == N - 1);
78-
ensureWritableBytes(N - 1);
7978
append(buf, N - 1);
8079
}
8180
void append(const char *buf, size_t len);
8281
void append(const std::string &buf)
8382
{
84-
ensureWritableBytes(buf.length());
8583
append(buf.c_str(), buf.length());
8684
}
8785

trantor/utils/WindowsSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
struct iovec
2020
{
2121
void *iov_base; /* Starting address */
22-
int iov_len; /* Number of bytes */
22+
int iov_len; /* Number of bytes */
2323
};
2424

2525
int readv(int fd, const struct iovec *vector, int count);

0 commit comments

Comments
 (0)