projects
/
xicursorset.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print the correct program name in usage info.
[xicursorset.git]
/
xicursorset.c
diff --git
a/xicursorset.c
b/xicursorset.c
index
54c985c
..
e66644b
100644
(file)
--- a/
xicursorset.c
+++ b/
xicursorset.c
@@
-17,11
+17,12
@@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include<stdio.h>
-#include<stdlib.h>
-#include<X11/Xcursor/Xcursor.h>
-#include<X11/extensions/XInput2.h>
-#include<assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <libgen.h>
+#include <X11/Xcursor/Xcursor.h>
+#include <X11/extensions/XInput2.h>
+#include <assert.h>
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
@@
-38,7
+39,8
@@
int main(int argc, char *argv[])
Cursor cursor;
if (argc < 3 || argc > 4) {
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;
}
return 1;
}