aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-06-19 22:29:08 +0000
committerGuy Harris <guy@alum.mit.edu>2005-06-19 22:29:08 +0000
commit75bdc464933b0740d1563ae225059f45abbde7c4 (patch)
treead295751231e288deb306dda5ae9bf0f033af670 /ethereal_gen.py
parent2524713192cc78c2e84353dd5b798176be2bc32c (diff)
Get rid of the include of "snprintf.h", as g_snprintf()" should be used.
Add _U_s to reduce the number of warnings. svn path=/trunk/; revision=14706
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 56656eb673..43ce7cb51d 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -2180,10 +2180,6 @@ for (i_@aname@=0; i_@aname@ < @aval@; i_@aname@++) {
#include <stdlib.h>
#include <gmodule.h>
-#ifdef NEED_SNPRINTF_H
-# include "snprintf.h"
-#endif
-
#include <string.h>
#include <glib.h>
#include <epan/packet.h>
@@ -2386,7 +2382,7 @@ if (!strcmp(header->exception_id, user_exception_@sname@ )) {
/* Exception = @exname@ */
-static void decode_ex_@sname@(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {
+static void decode_ex_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_) {
gboolean stream_is_big_endian; /* big endianess */
"""
@@ -2419,7 +2415,7 @@ stream_is_big_endian = is_big_endian(header); /* get stream endianess */
/* Struct = @stname@ */
-static void decode_@sname@_st(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {
+static void decode_@sname@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_) {
gboolean stream_is_big_endian; /* big endianess */
"""
@@ -2452,7 +2448,7 @@ stream_is_big_endian = is_big_endian(header); /* get stream endianess */
/* Union = @unname@ */
-static void decode_@sname@_un(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {
+static void decode_@sname@_un(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_) {
gboolean stream_is_big_endian; /* big endianess */
"""
@@ -2596,7 +2592,7 @@ if (!strcmp(operation, set_@sname@_at ) && (header->message_type == Request) ) {
/* Attribute = @atname@ */
-static void decode_@sname@_at(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation) {
+static void decode_@sname@_at(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_) {
gboolean stream_is_big_endian; /* big endianess */
"""
@@ -2751,7 +2747,7 @@ if (disc_s_@discname@ == @labelval@) {
/* Struct = @stname@ */
-static void decode_@name@_st(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation);
+static void decode_@name@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_);
"""
@@ -2778,7 +2774,7 @@ decode_@name@_st(tvb, pinfo, tree, offset, header, operation);
/* Union = @unname@ */
-static void decode_@name@_un(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, MessageHeader *header, gchar *operation);
+static void decode_@name@_un(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_);
"""