summaryrefslogtreecommitdiff
path: root/gobex
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2013-05-01 01:51:58 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-05-02 09:02:31 +0300
commitf946c9e445ded3a256be5b4fd59e48b114f72b0e (patch)
tree72fed9c47fa21539b5a858fbce78248df45e6660 /gobex
parent5d633f307c6b60469140da400eff0baac49fe96f (diff)
downloadbluez-f946c9e445ded3a256be5b4fd59e48b114f72b0e.tar.gz
gobex: Get rid of gchar
Use plain char instead of gchar.
Diffstat (limited to 'gobex')
-rw-r--r--gobex/gobex.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 9be5d3948..deeab4078 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -260,9 +260,9 @@ static gboolean write_stream(GObex *obex, GError **err)
{
GIOStatus status;
gsize bytes_written;
- gchar *buf;
+ char *buf;
- buf = (gchar *) &obex->tx_buf[obex->tx_sent];
+ buf = (char *) &obex->tx_buf[obex->tx_sent];
status = g_io_channel_write_chars(obex->io, buf, obex->tx_data,
&bytes_written, err);
if (status != G_IO_STATUS_NORMAL)
@@ -280,9 +280,9 @@ static gboolean write_packet(GObex *obex, GError **err)
{
GIOStatus status;
gsize bytes_written;
- gchar *buf;
+ char *buf;
- buf = (gchar *) &obex->tx_buf[obex->tx_sent];
+ buf = (char *) &obex->tx_buf[obex->tx_sent];
status = g_io_channel_write_chars(obex->io, buf, obex->tx_data,
&bytes_written, err);
if (status != G_IO_STATUS_NORMAL)
@@ -1036,14 +1036,14 @@ static gboolean read_stream(GObex *obex, GError **err)
GIOStatus status;
gsize rbytes, toread;
guint16 u16;
- gchar *buf;
+ char *buf;
if (obex->rx_data >= 3)
goto read_body;
rbytes = 0;
toread = 3 - obex->rx_data;
- buf = (gchar *) &obex->rx_buf[obex->rx_data];
+ buf = (char *) &obex->rx_buf[obex->rx_data];
status = g_io_channel_read_chars(io, buf, toread, &rbytes, NULL);
if (status != G_IO_STATUS_NORMAL)
@@ -1069,7 +1069,7 @@ read_body:
do {
toread = obex->rx_pkt_len - obex->rx_data;
- buf = (gchar *) &obex->rx_buf[obex->rx_data];
+ buf = (char *) &obex->rx_buf[obex->rx_data];
status = g_io_channel_read_chars(io, buf, toread, &rbytes, NULL);
if (status != G_IO_STATUS_NORMAL)
@@ -1098,7 +1098,7 @@ static gboolean read_packet(GObex *obex, GError **err)
goto fail;
}
- status = g_io_channel_read_chars(io, (gchar *) obex->rx_buf,
+ status = g_io_channel_read_chars(io, (char *) obex->rx_buf,
obex->rx_mtu, &rbytes, &read_err);
if (status != G_IO_STATUS_NORMAL) {
g_set_error(err, G_OBEX_ERROR, G_OBEX_ERROR_PARSE_ERROR,