aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ocfs2.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-04-09 22:20:53 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-09 20:44:30 +0000
commit93169cb49535e6991dc425e436bd4917222dbb7c (patch)
tree16860df0b144c3e6f96ddf510aa204d153d42059 /epan/dissectors/packet-ocfs2.c
parent7b60d2bb482a490d2f66b45eff978d32fcb9332d (diff)
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 <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ocfs2.c')
-rw-r--r--epan/dissectors/packet-ocfs2.c8
1 files changed, 5 insertions, 3 deletions
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 <glib.h>
#include <epan/packet.h>
#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
+ */