summaryrefslogtreecommitdiff
path: root/src/shared/dlt_common.c
diff options
context:
space:
mode:
authorManikandan C <mchockalingam@de.adit-jv.com>2018-12-12 10:20:37 +0100
committerManikandan C <mchockalingam@de.adit-jv.com>2018-12-12 10:20:37 +0100
commitbb15f2588aed9ee45ff42621de336aa4b7d65e53 (patch)
tree785b17ca079bc233a8fbccca6588c6e993ac7551 /src/shared/dlt_common.c
parentb2ce65d9947849160e04e751075c7fe4b5dcd158 (diff)
downloadDLT-daemon-bb15f2588aed9ee45ff42621de336aa4b7d65e53.tar.gz
Fixed compiler error with previous commit
Signed-off-by: Manikandan C <mchockalingam@de.adit-jv.com>
Diffstat (limited to 'src/shared/dlt_common.c')
-rw-r--r--src/shared/dlt_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 0b3c49e..461e1f1 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -2163,7 +2163,7 @@ DltReturnValue dlt_receiver_init_unix_socket(DltReceiver *receiver, int fd, char
/* allocating the buffer once and using it for all application receivers
* by keeping allocated buffer in app_recv_buffer global handle
*/
- *buffer = (char*)malloc(DLT_APP_RCV_BUF_MAX);
+ *buffer = (char*)malloc(DLT_RECEIVE_BUFSIZE);
if (*buffer == NULL)
{
return DLT_RETURN_ERROR;
@@ -2172,7 +2172,7 @@ DltReturnValue dlt_receiver_init_unix_socket(DltReceiver *receiver, int fd, char
receiver->lastBytesRcvd = 0;
receiver->bytesRcvd = 0;
receiver->totalBytesRcvd = 0;
- receiver->buffersize = DLT_APP_RCV_BUF_MAX;
+ receiver->buffersize = DLT_RECEIVE_BUFSIZE;
receiver->fd = fd;
receiver->buffer = *buffer;
receiver->backup_buf = NULL;