aboutsummaryrefslogtreecommitdiffstats
path: root/epan/sequence_analysis.h
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-16 18:06:18 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-12-19 19:29:53 +0000
commitc5a19582e4e18605e8528cd999221444f7ece318 (patch)
treed4206130200f56796a10eb2178ba8cefda1e7087 /epan/sequence_analysis.h
parent737d1dc125cc82851dee26004f9dc7922ed27c03 (diff)
epan: Convert to use stdio.h from GLib
Replace: g_snprintf() -> snprintf() g_vsnprintf() -> vsnprintf() g_strdup_printf() -> ws_strdup_printf() g_strdup_vprintf() -> ws_strdup_vprintf() This is more portable, user-friendly and faster on platforms where GLib does not like the native I/O. Adjust the format string to use macros from intypes.h.
Diffstat (limited to 'epan/sequence_analysis.h')
-rw-r--r--epan/sequence_analysis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/sequence_analysis.h b/epan/sequence_analysis.h
index 956d9a7afa..393e639041 100644
--- a/epan/sequence_analysis.h
+++ b/epan/sequence_analysis.h
@@ -72,7 +72,7 @@ typedef struct register_analysis register_analysis_t;
#if 0
#define SEQ_ANALYSIS_DEBUG(...) { \
- char *SEQ_ANALYSIS_DEBUG_MSG = g_strdup_printf(__VA_ARGS__); \
+ char *SEQ_ANALYSIS_DEBUG_MSG = ws_strdup_printf(__VA_ARGS__); \
ws_warning("sequence analysis: %s:%d %s", G_STRFUNC, __LINE__, SEQ_ANALYSIS_DEBUG_MSG); \
g_free(SEQ_ANALYSIS_DEBUG_MSG); \
}