summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-04-24 18:59:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-04-24 18:59:44 +0200
commit8f05535bb280bb8f957e179241fb6134b947e48a (patch)
tree03cc9cc0665803941a355b8bf1cb44aa675a9620 /gatchat/gathdlc.c
parent9fd7d841c861d460e036556f0fe4dfacb2d1f1da (diff)
downloadofono-8f05535bb280bb8f957e179241fb6134b947e48a.tar.bz2
Add offset parameter to ring_buffer_write_ptr() function
Diffstat (limited to 'gatchat/gathdlc.c')
-rw-r--r--gatchat/gathdlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index 4ee63bba..f56fb488 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -123,7 +123,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond,
break;
rbytes = 0;
- buf = ring_buffer_write_ptr(hdlc->read_buffer);
+ buf = ring_buffer_write_ptr(hdlc->read_buffer, 0);
err = g_io_channel_read(channel, (char *) buf, toread, &rbytes);
g_at_util_debug_dump(TRUE, buf, rbytes,
@@ -319,7 +319,7 @@ gboolean g_at_hdlc_send(GAtHDLC *hdlc, const unsigned char *data, gsize size)
{
unsigned int avail = ring_buffer_avail(hdlc->write_buffer);
unsigned int wrap = ring_buffer_avail_no_wrap(hdlc->write_buffer);
- unsigned char *buf = ring_buffer_write_ptr(hdlc->write_buffer);
+ unsigned char *buf = ring_buffer_write_ptr(hdlc->write_buffer, 0);
unsigned char tail[3];
unsigned int i = 0;
guint16 fcs = HDLC_INITFCS;