I am trying to adapt an old code packet-gtpcdr.c into new version of wireshark but failed during compilation.
See the compile error
Thanks asked 27 Mar '13, 14:59 steve21 edited 27 Mar '13, 15:42 Guy Harris ♦♦ |
2 Answers:
You should replace your u_char by guint8. Moreover the prototype of abs_time_to_str is now:
so your code should be:
answered 27 Mar '13, 15:51 Pascal Quantin |
Instead, the GLib types should be used; for example, for an 8-bit unsigned integral quantity, use
You should add, as the second argument:
answered 27 Mar '13, 15:55 Guy Harris ♦♦ edited 27 Mar '13, 15:56 @steve21, I'd already converted your "answer" to a comment under your original question as it wasn't clear which actual answer your "answer" was referring to, and in addition, it was really an extension of your original question. (28 Mar '13, 07:43) grahamb ♦ It's an extension only in that it's presumably an issue with the same dissector, but it's a completely different issue, so I made it into a separate question. This is a Q&A site, not a forum, so each item in the site should cover a separate question, so that people searching the site to see whether somebody else already asked the same question and got an answer can more easily find the question. (28 Mar '13, 11:33) Guy Harris ♦♦ Hi, Sorry I did not know it. (28 Mar '13, 14:23) steve21 |
First of all thanks for your support. Now compile failed because version already defined in packet in packet-gtpcdr.obj Can you help me?