From 1cb2713ca4f49017083a4854068a7bd5027d37cc Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 23 Apr 2007 10:59:26 +0000 Subject: Add some GCC warnings to the standard set, and add some others to the --enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21526 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-bittorrent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-bittorrent.c') diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index 43da881a68..f2ae482b58 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -103,7 +103,7 @@ static const value_string azureus_priorities[] = { struct amp_message { - char *name; + const char *name; guint32 value; }; @@ -170,7 +170,7 @@ static gboolean decode_client_information = FALSE; struct client_information { char id[4]; - char *name; + const char *name; }; static struct client_information peer_id[] = { -- cgit v1.2.3