commit bb3f54e814a1b20a06ca50bf18e3db40c085638d
parent 5dc0b0e649148b50a0893a14f1d0626c21a8ed98
Author: garbeam <garbeam@localhost>
Date: Tue, 10 Jan 2006 16:18:39 +0200
size_t snprintf version with %ul
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cmd/wm/page.c b/cmd/wm/page.c
@@ -26,17 +26,17 @@ alloc_page()
Page *p, *new = cext_emallocz(sizeof(Page));
char buf[MAX_BUF], buf2[16];
- snprintf(buf2, sizeof(buf2), "%ld", npages);
- snprintf(buf, sizeof(buf), "/%ld", npages);
+ snprintf(buf2, sizeof(buf2), "%ul", npages);
+ snprintf(buf, sizeof(buf), "/%ul", npages);
new->file[P_PREFIX] = ixp_create(ixps, buf);
- snprintf(buf, sizeof(buf), "/%ld/name", npages);
+ snprintf(buf, sizeof(buf), "/%ul/name", npages);
new->file[P_NAME] = wmii_create_ixpfile(ixps, buf, buf2);
- snprintf(buf, sizeof(buf), "/%ld/layout/", npages);
+ snprintf(buf, sizeof(buf), "/%ul/layout/", npages);
new->file[P_AREA_PREFIX] = ixp_create(ixps, buf);
- snprintf(buf, sizeof(buf), "/%ld/layout/sel", npages);
+ snprintf(buf, sizeof(buf), "/%ul/layout/sel", npages);
new->file[P_SEL_AREA] = ixp_create(ixps, buf);
new->file[P_SEL_AREA]->bind = 1; /* mount point */
- snprintf(buf, sizeof(buf), "/%ld/ctl", npages);
+ snprintf(buf, sizeof(buf), "/%ul/ctl", npages);
new->file[P_CTL] = ixp_create(ixps, buf);
new->file[P_CTL]->after_write = handle_after_write_page;
new->floating = alloc_area(new, "float");