diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-03 14:03:00 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-03 14:03:00 +0000 |
commit | 1b4cffc52728b8752db9814a2f6da1c8bd8e74cd (patch) | |
tree | ee944241f038aa9ea998b022e3b843a9621bb52c /tools | |
parent | e0d19cb73a2d9f827cdf254d46362d532af2b81a (diff) |
Add modelines.
Fix issues caught by cppcheck:
- Remove unused variable.
- Make sure to fclose output file.
svn path=/trunk/; revision=48034
Diffstat (limited to 'tools')
-rw-r--r-- | tools/npl/npl.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/npl/npl.c b/tools/npl/npl.c index 96124107a2..1ac324fe03 100644 --- a/tools/npl/npl.c +++ b/tools/npl/npl.c @@ -432,8 +432,6 @@ gen_protocol(FILE *f, npl_protocol_t *p) static void gen_struct(FILE *f, npl_struct_t *s) { - const char *tree_var; - if (!s->id) { static unsigned int _id = 0; char id[32]; @@ -668,7 +666,22 @@ int main(int argc, char **argv) { gen_proto_register(out); gen_proto_handoff(out); + + fclose(out); } fclose(f); return 0; } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |