{
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)
{
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)
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)
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)
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,