projects
/
xicursorset.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a2fd203
)
Print the correct program name in usage info.
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 20 Jan 2010 11:59:55 +0000
(12:59 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 20 Jan 2010 11:59:55 +0000
(12:59 +0100)
xicursorset.c
patch
|
blob
|
history
diff --git
a/xicursorset.c
b/xicursorset.c
index
92c90fd
..
e66644b
100644
(file)
--- a/
xicursorset.c
+++ b/
xicursorset.c
@@
-19,6
+19,7
@@
#include <stdio.h>
#include <stdlib.h>
+#include <libgen.h>
#include <X11/Xcursor/Xcursor.h>
#include <X11/extensions/XInput2.h>
#include <assert.h>
@@
-38,7
+39,8
@@
int main(int argc, char *argv[])
Cursor cursor;
if (argc < 3 || argc > 4) {
- printf("usage: xicursor <ptrid> <shape> [<theme>]\n");
+ printf("usage: %s <ptrid> <shape> [<theme>]\n",
+ basename(argv[0]));
return 1;
}