[beast] SFI: warning fix
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] SFI: warning fix
- Date: Mon, 9 May 2011 02:28:25 +0000 (UTC)
commit e9198b9f6102fc0da11acf6091308a7497a8faad
Author: Tim Janik <timj gtk org>
Date: Mon May 9 03:02:46 2011 +0200
SFI: warning fix
sfi/sficomport.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sfi/sficomport.cc b/sfi/sficomport.cc
index 90c8460..3023632 100644
--- a/sfi/sficomport.cc
+++ b/sfi/sficomport.cc
@@ -342,20 +342,20 @@ com_port_write_queued (SfiComPort *port)
static gboolean
com_port_write (SfiComPort *port,
guint n_bytes,
- const guint8 *bytes)
+ const uint8 *bytes)
{
- gint fd = port->pfd[1].fd;
+ int fd = port->pfd[1].fd;
if (!com_port_write_queued (port))
return FALSE; /* connection broke */
if (fd >= 0 && !port->wbuffer.n)
{
- gint n;
+ int n;
do
n = write (fd, bytes, MIN (n_bytes, IO_BOTTLE_NECK));
while (n < 0 && errno == EINTR);
if (n == 0 || (n < 0 && errno != EINTR && errno != EAGAIN && errno != ERESTART))
return FALSE;
- n = CLAMP (n, 0, n_bytes);
+ n = CLAMP (n, 0, int (n_bytes));
n_bytes -= n;
bytes += n;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]