diff options
author | Sebastien Tandel <sebastien@tandel.be> | 2007-04-03 19:50:04 +0000 |
---|---|---|
committer | Sebastien Tandel <sebastien@tandel.be> | 2007-04-03 19:50:04 +0000 |
commit | 0854c90e870e2206177716ca3905c121182e4bbe (patch) | |
tree | 83c23d84f562b2b9e8cbf3c5542c9f3499164ad0 /epan/packet.c | |
parent | 8cebae3c33637469a0699746672180ce31794f5c (diff) |
epan/dissectors/Makefile is now building four libraries :
- asn dissectors : libasndissectors.la
- pidl dissectors : libpidldissectors.la
- normal dissectors : libdissectors.la *and* libcleandissectors.la. I
separated it in two libraries temporarily. The source files used to build
libcleandissectors.la do not generate warning anymore and the -Werror is used
to compile them. If we patch a dissector and it doesn't generate warning
anymore, we have to move the filename dissector from DISSECTOR_SRC to
CLEAN_DISSECTOR_SRC in epan/dissectors/Makefile.common.
If you want to define specific cflags for one library type, let's say pidl, you
may define libpidldissectors_la_CFLAGS.
svn path=/trunk/; revision=21324
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c index 88707fb902..0c2d81c467 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -666,11 +666,12 @@ find_uint_dtbl_entry(dissector_table_t sub_dissectors, guint32 pattern) void dissector_add(const char *name, guint32 pattern, dissector_handle_t handle) { - dissector_table_t sub_dissectors = find_dissector_table( name); + dissector_table_t sub_dissectors; dtbl_entry_t *dtbl_entry; + sub_dissectors = find_dissector_table(name); /* sanity checks */ - g_assert( sub_dissectors); + g_assert(sub_dissectors); switch (sub_dissectors->type) { case FT_UINT8: |