This patch takes care of a compilation warning that produces a compilation
error on Windows (due to the newly introduced /WX compiler option).

Regards, Peter
Index: C:/wireshark-win32-libs/epan/dissectors/packet-ospf.c
===================================================================
--- C:/wireshark-win32-libs/epan/dissectors/packet-ospf.c       (revision 21226)
+++ C:/wireshark-win32-libs/epan/dissectors/packet-ospf.c       (working copy)
@@ -1156,27 +1156,27 @@
 
        case OSPF_HELLO:
            dissect_ospf_hello(tvb, ospf_header_length, ospf_tree, version,
-                           ospflen - ospf_header_length);
+                           (guint16)(ospflen - ospf_header_length));
            break;
 
        case OSPF_DB_DESC:
-           dissect_ospf_db_desc(tvb, ospf_header_length, ospf_tree, version,
-                           ospflen - ospf_header_length);
+           dissect_ospf_db_desc(tvb, (int)ospf_header_length, ospf_tree, 
version,
+                           (guint16)(ospflen - ospf_header_length));
            break;
 
        case OSPF_LS_REQ:
-           dissect_ospf_ls_req(tvb, ospf_header_length, ospf_tree, version,
-                           ospflen - ospf_header_length);
+           dissect_ospf_ls_req(tvb, (int)ospf_header_length, ospf_tree, 
version,
+                           (guint16)(ospflen - ospf_header_length));
            break;
 
        case OSPF_LS_UPD:
-           dissect_ospf_ls_upd(tvb, ospf_header_length, ospf_tree, version,
-                           ospflen - ospf_header_length);
+           dissect_ospf_ls_upd(tvb, (int)ospf_header_length, ospf_tree, 
version,
+                           (guint16)(ospflen - ospf_header_length));
            break;
 
        case OSPF_LS_ACK:
-           dissect_ospf_ls_ack(tvb, ospf_header_length, ospf_tree, version,
-                           ospflen - ospf_header_length);
+           dissect_ospf_ls_ack(tvb, (int)ospf_header_length, ospf_tree, 
version,
+                           (guint16)(ospflen - ospf_header_length));
            break;
 
        default:
_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to