Change-Id: Iad8837a2fb1fa4060d3ad9e4c0555e9ec2bc6691
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>
#include <string.h>
#include <ctype.h>
+static char *progname;
+
static void _X_NORETURN
PrintUsage(void)
{
- fprintf(stderr, "Usage: xvinfo [-display host:dpy] [-short] [-version]\n");
+ fprintf(stderr, "Usage: %s [-display host:dpy] [-short] [-version]\n", progname);
exit(0);
}
char *disname = NULL;
char shortmode = 0;
+ progname = argv[0];
+
if ((argc > 4))
PrintUsage();