This is an automated email from the ASF dual-hosted git repository.
dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new aa85af615e CID-1559185: Mute coverity. (#11666)
aa85af615e is described below
commit aa85af615eef9ef8e250b04e64e062d96e5dfbb8
Author: Damian Meden <[email protected]>
AuthorDate: Wed Aug 14 11:06:29 2024 +0200
CID-1559185: Mute coverity. (#11666)
* CID-1559185: Mute coverity.
---
include/shared/rpc/IPCSocketClient.h | 2 +-
src/shared/rpc/IPCSocketClient.cc | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/shared/rpc/IPCSocketClient.h
b/include/shared/rpc/IPCSocketClient.h
index 891c2581d7..a90ea6be44 100644
--- a/include/shared/rpc/IPCSocketClient.h
+++ b/include/shared/rpc/IPCSocketClient.h
@@ -85,7 +85,7 @@ struct IPCSocketClient {
}
protected:
- ssize_t _safe_write(int fd, const char *buffer, int len);
+ std::int64_t _safe_write(int fd, const char *buffer, int len);
std::string _path;
struct sockaddr_un _server;
diff --git a/src/shared/rpc/IPCSocketClient.cc
b/src/shared/rpc/IPCSocketClient.cc
index 2c8ba9b3e2..14b09710a9 100644
--- a/src/shared/rpc/IPCSocketClient.cc
+++ b/src/shared/rpc/IPCSocketClient.cc
@@ -35,7 +35,7 @@ namespace
{
/// @brief Simple buffer to store the jsonrpc server's response.
///
-/// With small content it will just use the LocalBufferWritter, if the
+/// With small content it will just use the LocalBufferWriter, if the
/// content gets bigger, then it will just save the buffer into a stream
/// and reuse the already created BufferWritter.
template <size_t N> class BufferStream
@@ -154,12 +154,12 @@ IPCSocketClient::connect(std::chrono::milliseconds ms,
int attempts)
return *this;
}
-ssize_t
+std::int64_t
IPCSocketClient::_safe_write(int fd, const char *buffer, int len)
{
- ssize_t written{0};
+ std::int64_t written{0};
while (written < len) {
- const int ret = ::write(fd, buffer + written, len - written);
+ const ssize_t ret = ::write(fd, buffer + written, len - written);
if (ret == -1) {
if (errno == EAGAIN || errno == EINTR) {
continue;