diff options
Diffstat (limited to 'gadgets/textwidth.c')
-rw-r--r-- | gadgets/textwidth.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |