[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [PATCH 3/8] Process: Fix const qualifer loss in ShowWindo
From: |
Kieran Bingham |
Subject: |
[screen-devel] [PATCH 3/8] Process: Fix const qualifer loss in ShowWindows |
Date: |
Sun, 4 Oct 2015 16:52:28 +0100 |
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 <address@hidden>
---
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
- [screen-devel] [Trivial] Bugfixes and compiler warnings, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 1/8] Makefile.in: Fix out of tree build, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 2/8] Process: Fix sign-compare errors, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 3/8] Process: Fix const qualifer loss in ShowWindows,
Kieran Bingham <=
- [screen-devel] [PATCH 5/8] Process: Fix printf modifier warning, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 6/8] Display: Unsigned comparison causes unreachable code, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 4/8] Process: Pointer arithmetic comparison with unsigned size_t, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 7/8] Display: Convert strlen_onscreen to be unsigned like strlen, Kieran Bingham, 2015/10/08
- [screen-devel] [PATCH 8/8] WinMsgBuf: Fix const qualifier in wmbc_mergewmb, Kieran Bingham, 2015/10/08