aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capinfos.c7
-rw-r--r--captype.c7
-rw-r--r--epan/dissectors/file-elf.c2
-rw-r--r--epan/dissectors/file-jpeg.c2
-rw-r--r--epan/dissectors/file-mp4.c2
-rw-r--r--wiretap/ber.c2
-rw-r--r--wiretap/camins.c2
-rw-r--r--wiretap/file_wrappers.c7
-rw-r--r--wiretap/k12text.l2
-rw-r--r--wiretap/logcat_text.c4
-rw-r--r--wiretap/pcapng.c13
-rw-r--r--wsutil/ws_version_info.c2
12 files changed, 38 insertions, 14 deletions
diff --git a/capinfos.c b/capinfos.c
index 178fa60cde..e75e70e1ec 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -1384,7 +1384,12 @@ get_capinfos_compiled_info(GString *str)
}
static void
-get_capinfos_runtime_info(GString *str _U_)
+get_capinfos_runtime_info(
+#if defined(HAVE_LIBZ) && !defined(_WIN32)
+ GString *str)
+#else
+ GString *str _U_)
+#endif
{
/* zlib */
#if defined(HAVE_LIBZ) && !defined(_WIN32)
diff --git a/captype.c b/captype.c
index 8b75852992..1390f0ce06 100644
--- a/captype.c
+++ b/captype.c
@@ -104,7 +104,12 @@ get_captype_compiled_info(GString *str)
}
static void
-get_captype_runtime_info(GString *str _U_)
+get_captype_runtime_info(
+#if defined(HAVE_LIBZ) && !defined(_WIN32)
+ GString *str)
+#else
+ GString *str _U_)
+#endif
{
/* zlib */
#if defined(HAVE_LIBZ) && !defined(_WIN32)
diff --git a/epan/dissectors/file-elf.c b/epan/dissectors/file-elf.c
index d45b844aed..c85f1e360f 100644
--- a/epan/dissectors/file-elf.c
+++ b/epan/dissectors/file-elf.c
@@ -962,7 +962,7 @@ dissect_eh_frame_hdr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *segment_
static gint
-dissect_eh_frame(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *segment_tree,
+dissect_eh_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *segment_tree,
gint offset, gint segment_size, gint register_size _U_, guint machine_encoding)
{
proto_tree *cfi_tree = NULL;
diff --git a/epan/dissectors/file-jpeg.c b/epan/dissectors/file-jpeg.c
index 82af92163b..8f419d5a98 100644
--- a/epan/dissectors/file-jpeg.c
+++ b/epan/dissectors/file-jpeg.c
@@ -484,7 +484,7 @@ process_sos_header(proto_tree *tree, tvbuff_t *tvb, guint32 len _U_,
* Process a Comment header (with length).
*/
static void
-process_comment_header(proto_tree *tree, tvbuff_t *tvb, guint32 len _U_,
+process_comment_header(proto_tree *tree, tvbuff_t *tvb, guint32 len,
guint16 marker, const char *marker_name)
{
proto_item *ti;
diff --git a/epan/dissectors/file-mp4.c b/epan/dissectors/file-mp4.c
index 9ff112c62f..e3c2d27442 100644
--- a/epan/dissectors/file-mp4.c
+++ b/epan/dissectors/file-mp4.c
@@ -491,7 +491,7 @@ dissect_mp4_url_body(tvbuff_t *tvb, gint offset, gint len,
static gint
dissect_mp4_stsd_body(tvbuff_t *tvb, gint offset, gint len,
- packet_info *pinfo _U_, proto_tree *tree)
+ packet_info *pinfo, proto_tree *tree)
{
guint32 entry_cnt, i;
gint ret;
diff --git a/wiretap/ber.c b/wiretap/ber.c
index b7467ce3da..4897447a04 100644
--- a/wiretap/ber.c
+++ b/wiretap/ber.c
@@ -85,7 +85,7 @@ static gboolean ber_read(wtap *wth, int *err, gchar **err_info, gint64 *data_off
return ber_read_file(wth, wth->fh, &wth->phdr, wth->frame_buffer, err, err_info);
}
-static gboolean ber_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr _U_,
+static gboolean ber_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr,
Buffer *buf, int *err, gchar **err_info)
{
/* there is only one packet */
diff --git a/wiretap/camins.c b/wiretap/camins.c
index 49863799dd..47a9f88c34 100644
--- a/wiretap/camins.c
+++ b/wiretap/camins.c
@@ -296,7 +296,7 @@ camins_seek_read(wtap *wth, gint64 seek_off,
-wtap_open_return_val camins_open(wtap *wth, int *err, gchar **err_info _U_)
+wtap_open_return_val camins_open(wtap *wth, int *err, gchar **err_info)
{
guint8 found_start_blocks = 0;
guint8 count = 0;
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
index 067be50659..777d683014 100644
--- a/wiretap/file_wrappers.c
+++ b/wiretap/file_wrappers.c
@@ -233,7 +233,12 @@ fast_seek_header(FILE_T file, gint64 in_pos, gint64 out_pos,
}
static void
-fast_seek_reset(FILE_T state _U_)
+fast_seek_reset(
+#ifdef HAVE_LIBZ
+ FILE_T state)
+#else
+ FILE_T state _U_)
+#endif
{
#ifdef HAVE_LIBZ
if (state->compression == ZLIB && state->fast_seek_cur) {
diff --git a/wiretap/k12text.l b/wiretap/k12text.l
index 7601b94232..3ff7ca8610 100644
--- a/wiretap/k12text.l
+++ b/wiretap/k12text.l
@@ -373,7 +373,7 @@ static const struct { int e; const char* s; } encaps[] = {
};
static gboolean
-k12text_dump(wtap_dumper *wdh _U_, const struct wtap_pkthdr *phdr,
+k12text_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
const guint8 *pd, int *err, gchar **err_info _U_) {
#define K12BUF_SIZE 196808
char *buf;
diff --git a/wiretap/logcat_text.c b/wiretap/logcat_text.c
index 870121a76e..551358170f 100644
--- a/wiretap/logcat_text.c
+++ b/wiretap/logcat_text.c
@@ -224,7 +224,7 @@ static gboolean logcat_text_read_packet(FILE_T fh, struct wtap_pkthdr *phdr,
}
static gboolean logcat_text_read(wtap *wth, int *err _U_ , gchar **err_info _U_,
- gint64 *data_offset _U_) {
+ gint64 *data_offset) {
*data_offset = file_tell(wth->fh);
return logcat_text_read_packet(wth->fh, &wth->phdr, wth->frame_buffer,
@@ -232,7 +232,7 @@ static gboolean logcat_text_read(wtap *wth, int *err _U_ , gchar **err_info _U_,
}
static gboolean logcat_text_seek_read(wtap *wth, gint64 seek_off,
- struct wtap_pkthdr *phdr, Buffer *buf, int *err _U_, gchar **err_info _U_) {
+ struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info _U_) {
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)
return FALSE;
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c
index 8729177b0b..3ebbfcaf1c 100644
--- a/wiretap/pcapng.c
+++ b/wiretap/pcapng.c
@@ -2122,7 +2122,7 @@ pcapng_read_interface_statistics_block(FILE_T fh, pcapng_block_header_t *bh, pca
}
static gboolean
-pcapng_read_sysdig_event_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn _U_, wtapng_block_t *wblock, int *err, gchar **err_info)
+pcapng_read_sysdig_event_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info)
{
unsigned block_read;
guint32 block_total_length;
@@ -2213,7 +2213,16 @@ pcapng_read_sysdig_event_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *p
}
static gboolean
-pcapng_read_unknown_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn _U_, wtapng_block_t *wblock _U_, int *err, gchar **err_info)
+pcapng_read_unknown_block(FILE_T fh, pcapng_block_header_t *bh,
+#
+#ifdef HAVE_PLUGINS
+ pcapng_t *pn,
+ wtapng_block_t *wblock,
+#else
+ pcapng_t *pn _U_,
+ wtapng_block_t *wblock _U_,
+#endif
+ int *err, gchar **err_info)
{
guint32 block_read;
guint32 block_total_length;
diff --git a/wsutil/ws_version_info.c b/wsutil/ws_version_info.c
index 9029598892..8298e8226e 100644
--- a/wsutil/ws_version_info.c
+++ b/wsutil/ws_version_info.c
@@ -126,7 +126,7 @@ get_compiled_version_info(void (*prepend_info)(GString *),
* Get the CPU info, and append it to the GString
*/
static void
-get_cpu_info(GString *str _U_)
+get_cpu_info(GString *str)
{
guint32 CPUInfo[4];
char CPUBrandString[0x40];