diff options
Diffstat (limited to 'src/daemon/dlt_daemon_connection.c')
-rw-r--r-- | src/daemon/dlt_daemon_connection.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/daemon/dlt_daemon_connection.c b/src/daemon/dlt_daemon_connection.c index 2fe17c1..456a075 100644 --- a/src/daemon/dlt_daemon_connection.c +++ b/src/daemon/dlt_daemon_connection.c @@ -71,7 +71,6 @@ DLT_STATIC int dlt_connection_send(DltConnection *conn, size_t msg_size) { DltConnectionType type = DLT_CONNECTION_TYPE_MAX; - int bytes_sent = 0; int ret = 0; if ((conn != NULL) && (conn->receiver != NULL)) @@ -88,9 +87,7 @@ DLT_STATIC int dlt_connection_send(DltConnection *conn, case DLT_CONNECTION_CLIENT_MSG_TCP: ret = dlt_daemon_socket_sendreliable(conn->receiver->fd, msg, - msg_size, - &bytes_sent); - conn->receiver->bytes_sent += bytes_sent; + msg_size); return ret; default: return DLT_DAEMON_ERROR_UNKNOWN; |