changeset 2049:cf567a0a7b8c

fix compilation warnings reported in http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-May/008348.html
author corvid <corvid@lavabit.com>
date Thu, 26 May 2011 14:21:52 +0000
parents 5060d415a85a
children 877989334d17
files src/IO/http.c src/dialog.cc
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/IO/http.c	Thu May 26 02:51:18 2011 +0000
+++ b/src/IO/http.c	Thu May 26 14:21:52 2011 +0000
@@ -174,7 +174,7 @@
             MSG_BW(sd->web, 1, "ERROR: %s", dStrerror(sd->Err));
             a_Chain_bfcb(OpAbort, sd->Info, NULL, "Both");
             dFree(sd->Info);
-            Http_socket_free((int) sd->Info->LocalKey);
+            Http_socket_free(VOIDP2INT(sd->Info->LocalKey));
          } else {
             sd->connected_to = hc->host;
             hc->active_connections++;
--- a/src/dialog.cc	Thu May 26 02:51:18 2011 +0000
+++ b/src/dialog.cc	Thu May 26 14:21:52 2011 +0000
@@ -174,7 +174,8 @@
    txt[0] = txt[6] = NULL;
    txt[1] = alt1; txt[2] = alt2; txt[3] = alt3;
    txt[4] = alt4; txt[5] = alt5;
-   for (int i=1; txt[i]; ++i, ++nb);
+   for (int i=1; txt[i]; ++i, ++nb)
+      ;
    ww = 140 + nb*(bw+10);
 
    Fl_Window *window = new Fl_Window(ww,wh,"Choice5");