From b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 4 Jul 2017 15:23:44 +0200 Subject: use off_t and intmax_t for file sizes --- xwin.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xwin.c') diff --git a/xwin.c b/xwin.c index d84f1f9..0b0aee1 100644 --- a/xwin.c +++ b/xwin.c @@ -29,10 +29,8 @@ #include #include - -#ifndef X_NOT_STDC_ENV +#include #include /* 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; } -- cgit 1.4.1