commit 57b0d1920c82f26ca4ec705bffcf06b180eda560
parent bb3f54e814a1b20a06ca50bf18e3db40c085638d
Author: garbeam <garbeam@darkstar.home>
Date: Tue, 10 Jan 2006 16:21:02 +0200
now corrected the snprintf's in page.c on 64bit
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), "%ul", npages);
- snprintf(buf, sizeof(buf), "/%ul", npages);
+ snprintf(buf2, sizeof(buf2), "%d", (int)npages);
+ snprintf(buf, sizeof(buf), "/%d", (int)npages);
new->file[P_PREFIX] = ixp_create(ixps, buf);
- snprintf(buf, sizeof(buf), "/%ul/name", npages);
+ snprintf(buf, sizeof(buf), "/%d/name", (int)npages);
new->file[P_NAME] = wmii_create_ixpfile(ixps, buf, buf2);
- snprintf(buf, sizeof(buf), "/%ul/layout/", npages);
+ snprintf(buf, sizeof(buf), "/%d/layout/", (int)npages);
new->file[P_AREA_PREFIX] = ixp_create(ixps, buf);
- snprintf(buf, sizeof(buf), "/%ul/layout/sel", npages);
+ snprintf(buf, sizeof(buf), "/%d/layout/sel", (int)npages);
new->file[P_SEL_AREA] = ixp_create(ixps, buf);
new->file[P_SEL_AREA]->bind = 1; /* mount point */
- snprintf(buf, sizeof(buf), "/%ul/ctl", npages);
+ snprintf(buf, sizeof(buf), "/%d/ctl", (int)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");