From e2e5b01d771339a596a418ec306fe00ab504e593 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 26 Dec 2018 18:10:12 +0100 Subject: cli_main: remove real_main from stack traces for non-Windows Restore the "main" name since that is used everywhere else except for Windows. On Windows, "main" is renamed via a macro to avoid a conflict with "wmain" and to allow it to be called in cli_main.c. For those wondering, GUI applications (such as Qt) have a different entry point, namely WinMain. In Qt5, src/winmain/qtmain_win.cpp defines WinMain, but seems to convert its arguments from Unicode to CP_ACP (ASCII). It might not support UTF-8, but I did not verify this. Change-Id: I93fa59324eb2ef95a305b08fc5ba34d49cc73bf0 Reviewed-on: https://code.wireshark.org/review/31208 Petri-Dish: Peter Wu Reviewed-by: Anders Broman --- randpkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randpkt.c') diff --git a/randpkt.c b/randpkt.c index c70110116f..3046b7de2c 100644 --- a/randpkt.c +++ b/randpkt.c @@ -100,7 +100,7 @@ usage(gboolean is_error) } int -real_main(int argc, char **argv) +main(int argc, char *argv[]) { char *init_progfile_dir_error; int opt; -- cgit v1.2.3