Here, ss is simply a pointer to the string to manipulate position (not content) so it is reasonable to maintain the const parameter for this variable.
Signed-off-by: Kieran Bingham <kieranbing...@gmail.com> --- src/process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index e443023..86864f5 100644 --- a/src/process.c +++ b/src/process.c @@ -4610,8 +4610,7 @@ char *AddOtherUsers(char *buf, int len, Window *p) * current foreground window, if available. */ void ShowWindows(int where) { - char *ss; - const char *buf, *s; + const char *buf, *s, *ss; WinMsgBuf *wmb = wmb_create(); WinMsgBufContext *wmbc = wmbc_create(wmb); -- 2.1.4