2003-08-24 Martyn Russell <ginxd@btopenworld.com>
authorhallski <hallski>
Sat, 23 Aug 2003 23:36:11 +0000 (23:36 +0000)
committerhallski <hallski>
Sat, 23 Aug 2003 23:36:11 +0000 (23:36 +0000)
* loudmouth/lm-connection.c:
(connection_in_event): Use an int for bytes_read. Since bytes_read is
  now also used for gnutls return value (which can be < 0) a gsize
  (unsigned) is not a good idea...

ChangeLog
loudmouth/lm-connection.c

index 0c35dc53e14c1074eca42f5097fe41d6c516703e..211e2f3951246577b559e051d0a6d3c443ddedef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-08-24  Martyn Russell  <ginxd@btopenworld.com>
+
+       * loudmouth/lm-connection.c:
+       (connection_in_event): Use an int for bytes_read. Since bytes_read is
+         now also used for gnutls return value (which can be < 0) a gsize
+         (unsigned) is not a good idea...
+       
 2003-08-15  Mikael Hallendal  <micke@imendio.com>
 
         * Release 0.13.2
index 8d51d0496812168fdb10e3c87bb3405c51dbf789..885eabbf420a1bbb0612bf8fe33dd790d2e7716e 100644 (file)
@@ -374,7 +374,7 @@ connection_in_event (GIOChannel   *source,
                     LmConnection *connection)
 {
        gchar     buf[IN_BUFFER_SIZE];
-       gsize     bytes_read;
+       gint      bytes_read;
        GIOStatus status;
        
        if (!connection->io_channel) {
@@ -408,7 +408,6 @@ connection_in_event (GIOChannel   *source,
        if (status != G_IO_STATUS_NORMAL) {
                gint reason;
                
-               
                switch (status) {
                case G_IO_STATUS_EOF:
                        reason = LM_DISCONNECT_REASON_HUP;