ref: 29ea77fc3484dc0e02cde9f1e892543f8120df5a
parent: e1ecab3750825965fcfeba5821c28995d08fd781
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 7 09:23:41 EST 2020
rio: format pid's as ulongs
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -1420,7 +1420,7 @@
void
wsetpid(Window *w, int pid, int dolabel)
{- char buf[64];
+ char buf[32];
int ofd;
ofd = w->notefd;
@@ -1428,11 +1428,11 @@
w->notefd = -1;
else { if(dolabel){- snprint(buf, sizeof(buf), "rc %d", pid);
+ snprint(buf, sizeof(buf), "rc %lud", (ulong)pid);
free(w->label);
w->label = estrdup(buf);
}
- snprint(buf, sizeof(buf), "/proc/%d/notepg", pid);
+ snprint(buf, sizeof(buf), "/proc/%lud/notepg", (ulong)pid);
w->notefd = open(buf, OWRITE|OCEXEC);
}
if(ofd >= 0)
--
⑨