Git Product home page Git Product logo

tor-cell-dissector's Issues

range_copy issue

I get this error when trying to make
Im on Archlinux

In file included from packet-cell.c:37:0:
/usr/include/wireshark/epan/dissectors/packet-ssl.h:34:20: note: expected ‘dissector_handle_t {aka struct dissector_handle *}’ but argument is of type ‘const char *’
WS_DLL_PUBLIC void ssl_dissector_add(guint port, dissector_handle_t handle);
^~~~~~~~~~~~~~~~~
packet-cell.c:348:2: error: too many arguments to function ‘ssl_dissector_add’
ssl_dissector_add(port, "cell", TRUE);
^~~~~~~~~~~~~~~~~
In file included from packet-cell.c:37:0:
/usr/include/wireshark/epan/dissectors/packet-ssl.h:34:20: note: declared here
WS_DLL_PUBLIC void ssl_dissector_add(guint port, dissector_handle_t handle);
^~~~~~~~~~~~~~~~~
packet-cell.c: In function ‘proto_reg_handoff_cell’:
packet-cell.c:378:23: warning: implicit declaration of function ‘new_register_dissector’; did you mean ‘deregister_dissector’? [-Wimplicit-function-declaration]
cell_handle = new_register_dissector("cell", dissect_cell, proto_cell);
^~~~~~~~~~~~~~~~~~~~~~
deregister_dissector
packet-cell.c:378:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
cell_handle = new_register_dissector("cell", dissect_cell, proto_cell);
^
packet-cell.c:388:33: warning: passing argument 1 of ‘range_copy’ from incompatible pointer type [-Wincompatible-pointer-types]
cell_ssl_range = range_copy(global_cell_ssl_range);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:33:0,
from /usr/include/wireshark/epan/epan.h:31,
from /usr/include/wireshark/epan/packet.h:28,
from packet-cell.c:35:
/usr/include/wireshark/epan/range.h:151:24: note: expected ‘wmem_allocator_t * {aka struct _wmem_allocator_t *}’ but argument is of type ‘range_t * {aka struct epan_range *}’
WS_DLL_PUBLIC range_t *range_copy(wmem_allocator_t *scope, range_t *src);
^~~~~~~~~~
packet-cell.c:388:22: error: too few arguments to function ‘range_copy’
cell_ssl_range = range_copy(global_cell_ssl_range);
^~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:33:0,
from /usr/include/wireshark/epan/epan.h:31,
from /usr/include/wireshark/epan/packet.h:28,
from packet-cell.c:35:
/usr/include/wireshark/epan/range.h:151:24: note: declared here
WS_DLL_PUBLIC range_t *range_copy(wmem_allocator_t *scope, range_t *src);
^~~~~~~~~~
make: *** [Makefile:18: packet-cell.c.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.