aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets/textwidth.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 09:41:51 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 09:41:51 +0000
commita3bf26d2fade3eaadba6f20349cba6db82ca756d (patch)
treee2d5394a5ae33b5698748f41b70525b831c81a2e /gadgets/textwidth.c
parente433da722fde36fd522013704ffca886121e61a6 (diff)
downloaddzen-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.c4
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;
}