- add modelines
- convert emem to wmem
- add cast to satisfy my version of GCC
svn path=/trunk/; revision=49982
#include <epan/packet.h>
#include <epan/strutil.h>
+#include <epan/wmem/wmem.h>
static gint proto_urlencoded = -1;
offset++;
}
- *ptr = tmp = ep_alloc(len + 1);
+ *ptr = tmp = (char*)wmem_alloc(wmem_packet_scope(), len + 1);
tmp[len] = '\0';
len = 0;
dissector_add_string("media_type", "application/x-www-form-urlencoded", form_urlencoded_handle);
}
+
+/*
+ * 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:
+ */