From 0111e461938d47efd1eb8dc17f135b93b253ab52 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sun, 5 Oct 2014 21:34:19 -0400 Subject: plugins: Add editor modelines; Adjust whitespace as needed. Change-Id: I36124f6021d46a228721bdc976f6b9fef1c8c088 Reviewed-on: https://code.wireshark.org/review/4488 Reviewed-by: Bill Meier --- plugins/easy_codec/codec-g722.c | 12 ++++++++++++ plugins/easy_codec/codec-g7231.c | 26 +++++++++++++++++++------- plugins/easy_codec/codec-g729a.c | 12 ++++++++++++ 3 files changed, 43 insertions(+), 7 deletions(-) (limited to 'plugins/easy_codec') diff --git a/plugins/easy_codec/codec-g722.c b/plugins/easy_codec/codec-g722.c index fd7259816d..a2ab6d10b8 100644 --- a/plugins/easy_codec/codec-g722.c +++ b/plugins/easy_codec/codec-g722.c @@ -88,3 +88,15 @@ int codec_g722_decode(void *context, const void *input, int inputSizeBytes, void return decodedBytes; } +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local Variables: + * c-basic-offset: 2 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=2 tabstop=8 expandtab: + * :indentSize=2:tabSize=8:noTabs=true: + */ diff --git a/plugins/easy_codec/codec-g7231.c b/plugins/easy_codec/codec-g7231.c index 79f8a30702..0a90218f9c 100644 --- a/plugins/easy_codec/codec-g7231.c +++ b/plugins/easy_codec/codec-g7231.c @@ -61,13 +61,13 @@ int codec_g7231_decode(void *context, const void *input, int inputSizeBytes, voi if (!ctx) return 0; if ( ctx->handle == -1) { - if ( bitstream[0] & 0x03 ) { - ctx->handle=EasyG7231_init_decoder(FALSE); - ctx->l_g7231_frame_compressed = L_G7231_FRAME_COMPRESSED_53; - } else { - ctx->handle=EasyG7231_init_decoder(TRUE); - ctx->l_g7231_frame_compressed = L_G7231_FRAME_COMPRESSED_63; - } + if ( bitstream[0] & 0x03 ) { + ctx->handle=EasyG7231_init_decoder(FALSE); + ctx->l_g7231_frame_compressed = L_G7231_FRAME_COMPRESSED_53; + } else { + ctx->handle=EasyG7231_init_decoder(TRUE); + ctx->l_g7231_frame_compressed = L_G7231_FRAME_COMPRESSED_63; + } } if ((inputSizeBytes % ctx->l_g7231_frame_compressed) != 0) @@ -93,3 +93,15 @@ int codec_g7231_decode(void *context, const void *input, int inputSizeBytes, voi return decodedBytes; } +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local Variables: + * c-basic-offset: 2 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=2 tabstop=8 expandtab: + * :indentSize=2:tabSize=8:noTabs=true: + */ diff --git a/plugins/easy_codec/codec-g729a.c b/plugins/easy_codec/codec-g729a.c index 48be1dfccc..2a5efac2c7 100644 --- a/plugins/easy_codec/codec-g729a.c +++ b/plugins/easy_codec/codec-g729a.c @@ -79,3 +79,15 @@ int codec_g729a_decode(void *context, const void *input, int inputSizeBytes, voi return decodedBytes; } +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local Variables: + * c-basic-offset: 2 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=2 tabstop=8 expandtab: + * :indentSize=2:tabSize=8:noTabs=true: + */ -- cgit v1.2.3