X-Git-Url: https://git.ao2.it/xicursorset.git/blobdiff_plain/464f2702f5699c240fba01e6a7af783fa96454a5..HEAD:/xicursorset.c diff --git a/xicursorset.c b/xicursorset.c index 54c985c..37faf80 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -17,11 +17,12 @@ * along with this program. If not, see . */ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include int main(int argc, char *argv[]) { @@ -38,7 +39,8 @@ int main(int argc, char *argv[]) Cursor cursor; if (argc < 3 || argc > 4) { - printf("usage: xicursor []\n"); + printf("usage: %s []\n", + basename(argv[0])); return 1; } @@ -69,17 +71,17 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } - - if (argc == 4) + if (argc == 4) { theme = argv[3]; - else + } else { theme = XcursorGetTheme(dpy); if (theme == NULL) { fprintf(stderr, "Can't get cursor theme.\n"); return EXIT_FAILURE; } + } - image = XcursorShapeLoadImage(shape, theme, size); + image = XcursorShapeLoadImage((unsigned int)shape, theme, size); if (image == NULL) { fprintf(stderr, "Can't get cursor image, check or .\n"); return EXIT_FAILURE;