From 1c39c308b64f6b7ee6722cb76c8ad1c08030018b Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 23 Jan 2026 09:47:41 +0100 Subject: [PATCH] And get rid of the now useless s parameter. --- src/86box.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/86box.c b/src/86box.c index d3d9d05c7..80244dc8b 100644 --- a/src/86box.c +++ b/src/86box.c @@ -682,12 +682,12 @@ delete_nvr_file(uint8_t flash) extern void device_find_all_descs(void); static void -pc_show_usage(char *s) +pc_show_usage(void) { char p[8192] = { 0 }; sprintf(p, - "\n%sUsage: 86box [options] [cfg-file]\n\n" + "\nUsage: 86box [options] [cfg-file]\n\n" "Valid options are:\n\n" "-? or --help\t\t\t- show this information\n" "-A or --assetpath path\t\t- set 'path' to be asset path\n" @@ -736,8 +736,7 @@ pc_show_usage(char *s) "-Y or --donothing\t\t- do not show any UI or run the emulation\n" #endif "-Z or --lastvmpath\t\t- the last param. is VM path rather than config\n" - "\nA config file can be specified. If none is, the default file will be used.\n", - s); + "\nA config file can be specified. If none is, the default file will be used.\n"); #ifdef _WIN32 ui_msgbox(MBX_ANSI | MBX_INFO, p); @@ -842,7 +841,7 @@ usage: } } - pc_show_usage(""); + pc_show_usage(); return 0; } else if (!strcasecmp(argv[c], "--lastvmpath") || !strcasecmp(argv[c], "-Z")) { lvmp = 1;