diff options
Diffstat (limited to 'gadgets')
-rw-r--r-- | gadgets/Makefile | 1 | ||||
-rw-r--r-- | gadgets/textwidth.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/gadgets/Makefile b/gadgets/Makefile index b73e756..36081bc 100644 --- a/gadgets/Makefile +++ b/gadgets/Makefile @@ -41,7 +41,6 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f dbar ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/dbar - @mkdir -p ${DESTDIR}${PREFIX}/textwidth @cp -f textwidth ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/textwidth diff --git a/gadgets/textwidth.c b/gadgets/textwidth.c index e32cb1e..6f95f35 100644 --- a/gadgets/textwidth.c +++ b/gadgets/textwidth.c @@ -39,7 +39,7 @@ typedef struct _Fnt { Fnt font; Display *dpy; -static unsigned int +unsigned int textw(const char *text, unsigned int len) { XRectangle r; @@ -110,7 +110,7 @@ main(int argc, char *argv[]) } setfont(myfont); - printf("%d\n", textw(text, strlen(text))); + printf("%u\n", textw(text, strlen(text))); return EXIT_SUCCESS; } |