diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-20 09:41:51 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-20 09:41:51 +0000 |
commit | a3bf26d2fade3eaadba6f20349cba6db82ca756d (patch) | |
tree | e2d5394a5ae33b5698748f41b70525b831c81a2e /gadgets/textwidth.c | |
parent | e433da722fde36fd522013704ffca886121e61a6 (diff) | |
download | dzen-a3bf26d2fade3eaadba6f20349cba6db82ca756d.tar.gz dzen-a3bf26d2fade3eaadba6f20349cba6db82ca756d.zip |
clean up textwidth gadget
git-svn-id: http://dzen.googlecode.com/svn/trunk@140 f2baff5b-bf2c-0410-a398-912abdc3d8b2
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; } |