diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:23:44 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:23:44 +0200 |
commit | b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5 (patch) | |
tree | 6e5483d7a6a3ef436b21e7758cacc93b88d2776b /xwin.c | |
parent | 873aa90e0411fe7a5c0cfd0cd6e89a890dc890f2 (diff) | |
download | xdu-b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5.tar.gz xdu-b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5.tar.xz xdu-b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5.zip |
use off_t and intmax_t for file sizes
Diffstat (limited to 'xwin.c')
-rw-r--r-- | xwin.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xwin.c b/xwin.c index d84f1f9..0b0aee1 100644 --- a/xwin.c +++ b/xwin.c @@ -29,10 +29,8 @@ #include <X11/Xaw/Label.h> #include <stdio.h> - -#ifndef X_NOT_STDC_ENV +#include <stdint.h> #include <stdlib.h> /* for exit() */ -#endif /* IMPORTS: routines that this module vectors out to */ int press(int x, int y); @@ -351,7 +349,7 @@ xdrawrect(char *name, off_t size, int x, int y, int width, int height) XDrawRectangle(dpy, win, gc, x, y, width, height); if (res.showsize) { - sprintf(label,"%s (%d)", name, size); + sprintf(label,"%s (%jd)", name, (intmax_t)size); name = label; } |