$OpenBSD: patch-libcdcx_c,v 1.1 2002/08/29 01:57:15 wcobb Exp $ --- libcdcx.c.orig Wed Aug 28 00:14:32 2002 +++ libcdcx.c Wed Aug 28 00:16:45 2002 @@ -31,6 +31,7 @@ */ +#include #include #include #include @@ -164,7 +165,7 @@ u_long *vals, *colors, backcolor; colwidth = barwidth / cols; for (lcv = 0 ; lcv < n ; lcv++) { - snprintf(buf, sizeof(buf), "%s = %d", names[lcv], vals[lcv]); + snprintf(buf, sizeof(buf), "%s = %ld", names[lcv], vals[lcv]); XSetForeground(xdpy->dpy, gc, colors[lcv]); XDrawImageString(xdpy->dpy, win, gc, x, get_fontheight(font) + y, buf, strlen(buf)); @@ -252,7 +253,7 @@ u_long *vals, *colors, backcolor; colwidth = barwidth / cols; for (lcv = 0 ; lcv < n ; lcv++) { - snprintf(buf, sizeof(buf), "%s = %d", names[lcv], vals[lcv]); + snprintf(buf, sizeof(buf), "%s = %ld", names[lcv], vals[lcv]); XSetForeground(xdpy->dpy, gc, colors[lcv]); XDrawImageString(xdpy->dpy, win, gc, x, get_fontheight(font) + y, buf, strlen(buf));