Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 7215] dvb-ci: fix some clang warnings

Date: Mon, 30 Apr 2012 07:08:47 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7215

Pascal Quantin <pascal.quantin@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pascal.quantin@xxxxxxxxx

--- Comment #2 from Pascal Quantin <pascal.quantin@xxxxxxxxx> 2012-04-30 07:08:47 PDT ---
Patch delivered in revision 42347.

Not sure about the first warning, but for the two other ones have you tried
this?

--- epan/dissectors/packet-dvbci.c      (révision 42347)
+++ epan/dissectors/packet-dvbci.c      (copie de travail)
@@ -756,8 +756,8 @@

 static int proto_dvbci = -1;

-static gchar* dvbci_sek = NULL;
-static gchar* dvbci_siv = NULL;
+static const gchar* dvbci_sek = NULL;
+static const gchar* dvbci_siv = NULL;

 static gint ett_dvbci = -1;
 static gint ett_dvbci_hdr = -1;
@@ -5249,10 +5249,10 @@
         proto_dvbci, proto_reg_handoff_dvbci);
     prefs_register_string_preference(dvbci_module,
                                      "sek", "SAC Encryption Key", "SAC
Encryption Key (16 hex bytes)",
-                                     (const gchar **)&dvbci_sek);
+                                     &dvbci_sek);
     prefs_register_string_preference(dvbci_module,
                                      "siv", "SAC Init Vector", "SAC Init
Vector (16 hex bytes)",
-                                     (const gchar **)&dvbci_siv);
+                                     &dvbci_siv);

     sas_msg_dissector_table =
register_dissector_table("dvb-ci.sas.app_id_str",
                 "SAS application id", FT_STRING, BASE_NONE);

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.