diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-08 21:03:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-08 21:03:41 +0000 |
commit | c6ac943216ed9b9583a6532c09321f53eb3c02e9 (patch) | |
tree | 7f7410af8a5a2c4c3eb31c7c3eddc6900e797c66 /packet-frame.c | |
parent | d4959b176edf55f7160a95100ae9d47d1f6d8993 (diff) |
Clean up indentation.
svn path=/trunk/; revision=4362
Diffstat (limited to 'packet-frame.c')
-rw-r--r-- | packet-frame.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/packet-frame.c b/packet-frame.c index 231acab969..f3fee8f4b4 100644 --- a/packet-frame.c +++ b/packet-frame.c @@ -2,12 +2,11 @@ * * Top-most dissector. Decides dissector based on Wiretap Encapsulation Type. * - * $Id: packet-frame.c,v 1.13 2001/12/08 06:41:41 guy Exp $ + * $Id: packet-frame.c,v 1.14 2001/12/08 21:03:41 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 2000 Gerald Combs - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -124,11 +123,12 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) 0, 0, pinfo->p2p_dir); } - if (show_file_off) { - proto_tree_add_int_format(fh_tree, hf_frame_file_off, tvb, - 0, 0, pinfo->fd->file_off, "File Offset: %ld (0x%lx)", - pinfo->fd->file_off, pinfo->fd->file_off); - } + if (show_file_off) { + proto_tree_add_int_format(fh_tree, hf_frame_file_off, tvb, + 0, 0, pinfo->fd->file_off, + "File Offset: %ld (0x%lx)", + pinfo->fd->file_off, pinfo->fd->file_off); + } } @@ -200,7 +200,7 @@ proto_register_frame(void) static gint *ett[] = { &ett_frame, }; - module_t *frame_module; + module_t *frame_module; wtap_encap_dissector_table = register_dissector_table("wtap_encap", "Wiretap encapsulation type", FT_UINT32, BASE_DEC); @@ -223,13 +223,14 @@ proto_register_frame(void) proto_set_cant_disable(proto_short); proto_set_cant_disable(proto_malformed); - /* Our preferences */ - frame_module = prefs_register_protocol(proto_frame, NULL); - prefs_register_bool_preference(frame_module, "show_file_off", - "Show File Offset", "Show File Offset", &show_file_off); + /* Our preferences */ + frame_module = prefs_register_protocol(proto_frame, NULL); + prefs_register_bool_preference(frame_module, "show_file_off", + "Show File Offset", "Show File Offset", &show_file_off); } void -proto_reg_handoff_frame(void){ - data_handle = find_dissector("data"); +proto_reg_handoff_frame(void) +{ + data_handle = find_dissector("data"); } |