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>
This commit is contained in:
Alexis La Goutte 2015-04-09 22:20:53 +02:00 committed by Anders Broman
parent 7b60d2bb48
commit 93169cb495
1 changed files with 5 additions and 3 deletions

View File

@ -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:
*/
*/