summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.c
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-27 10:15:37 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-27 10:15:37 +0200
commit43059d5993e5780e61950e9190eabbba24edf1ba (patch)
treedd6d975855629f2b36ebeda3d1661ebd73fbec9c /src/daemon/dlt_daemon_common.c
parent6b2e16baa00cc60010a4f8f6e036c91d9a8805dd (diff)
downloadDLT-daemon-43059d5993e5780e61950e9190eabbba24edf1ba.tar.gz
Removed Ringbuffer from daemon.
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rwxr-xr-xsrc/daemon/dlt_daemon_common.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c
index ed6103c..003dc33 100755
--- a/src/daemon/dlt_daemon_common.c
+++ b/src/daemon/dlt_daemon_common.c
@@ -177,12 +177,6 @@ int dlt_daemon_init(DltDaemon *daemon,const char *runtime_directory, int verbose
dlt_set_id(daemon->ecuid,"");
- /* initialize ring buffer for client connection */
- if (dlt_ringbuffer_init(&(daemon->client_ringbuffer), DLT_DAEMON_RINGBUFFER_SIZE)==-1)
- {
- return -1;
- }
-
return 0;
}
@@ -2002,16 +1996,8 @@ void dlt_daemon_control_send_control_message( int sock, DltDaemon *daemon, DltMe
}
else
{
- /* Store message in history buffer */
- if (dlt_ringbuffer_put3(&(daemon->client_ringbuffer),
- msg->headerbuffer+sizeof(DltStorageHeader),msg->headersize-sizeof(DltStorageHeader),
- msg->databuffer,msg->datasize,
- 0, 0
- )<0)
- {
- dlt_log(LOG_ERR,"Storage of message in history buffer failed! Message discarded.\n");
- return;
- }
+ /* message can not be sent */
+ /* in old implementation control message was stored in buffer */
}
}