From 93169cb49535e6991dc425e436bd4917222dbb7c Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 9 Apr 2015 22:20:53 +0200 Subject: OCFS2: fix some GCC / Clang warnings packet-ocfs2.c:249: comma at end of enumerator list [-Wpedantic] packet-ocfs2.c:1171: no previous prototype for 'proto_register_ocfs2' [-Wmissing-prototypes] packet-ocfs2.c:1651: no previous prototype for 'proto_reg_handoff_ocfs2' [-Wmissing-prototypes] packet-ocfs2.c:1678:4: no newline at end of file [-Wnewline-eof] Remove also unneed glib.h include Change-Id: I47a03dbc9f175a0e2453dd90a733144ac9f95fc4 Reviewed-on: https://code.wireshark.org/review/8007 Reviewed-by: Alexis La Goutte Petri-Dish: Alexis La Goutte Reviewed-by: Anders Broman --- epan/dissectors/packet-ocfs2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-ocfs2.c') diff --git a/epan/dissectors/packet-ocfs2.c b/epan/dissectors/packet-ocfs2.c index 96f33b5732..105a82173c 100644 --- a/epan/dissectors/packet-ocfs2.c +++ b/epan/dissectors/packet-ocfs2.c @@ -29,11 +29,13 @@ #include "config.h" -#include #include #include "packet-tcp.h" +void proto_register_ocfs2(void); +void proto_reg_handoff_ocfs2(void); + static gint ett_ocfs2 = -1; static gint ett_dtm_lock_flags = -1; static gint ett_mres_flags = -1; @@ -246,7 +248,7 @@ enum { DLM_GRANTED_LIST = 0, DLM_CONVERTING_LIST, DLM_BLOCKED_LIST, - DLM_MAX_LIST, + DLM_MAX_LIST }; static const value_string dlm_lockres_list[] = { @@ -1672,4 +1674,4 @@ void proto_reg_handoff_ocfs2(void) * * vi: set shiftwidth=8 tabstop=8 noexpandtab: * :indentSize=8:tabSize=8:noTabs=false: - */ \ No newline at end of file + */ -- cgit v1.2.3