summaryrefslogtreecommitdiff
path: root/xvidtune.c
diff options
context:
space:
mode:
authorStéphane Aulery <lkppo@free.fr>2013-07-04 00:29:54 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-06 08:57:39 -0700
commitbc468c7e448131237b86ef52270af31b677e61e6 (patch)
tree95f11225b9ef0de34c52d829ef9e1561ee73fca8 /xvidtune.c
parent2726b9d640d07d771742879f08523f02ee82246b (diff)
Use real program name for help message
Signed-off-by: Stéphane Aulery <lkppo@free.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xvidtune.c')
-rw-r--r--xvidtune.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xvidtune.c b/xvidtune.c
index ac339e4..18b67d5 100644
--- a/xvidtune.c
+++ b/xvidtune.c
@@ -55,6 +55,8 @@ static int dot_clock, mode_flags;
static unsigned long TestTimeout=5000; /* Default test timeout */
static XtSignalId sigId;
+static char *progname;
+
/* Minimum extension version required */
#define MINMAJOR 0
#define MINMINOR 5
@@ -1477,7 +1479,7 @@ PrevModeAction(Widget w, XEvent* e, String* vector, Cardinal* count)
static void
usage(void)
{
- fprintf(stderr, "Usage: xvidtune [option]\n");
+ fprintf(stderr, "Usage: %s [option]\n", progname);
fprintf(stderr, " where option is one of:\n");
fprintf(stderr, " -show Print current modeline to stdout\n");
fprintf(stderr, " -next Switch to next video mode\n");
@@ -1495,6 +1497,8 @@ main (int argc, char** argv)
XtAppContext app;
Display* dpy;
Bool modeSettable = TRUE;
+
+ progname = argv[0];
static XtActionsRec actions[] = { { "xvidtune-quit", QuitAction },
{ "xvidtune-restore", RestoreAction },