xrestop: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 19 15:56:27 UTC 2019
xrestop.c | 32 ++++++++++----------------------
1 file changed, 10 insertions(+), 22 deletions(-)
New commits:
commit 956c0e145a87d2b19144d820c33c3d64ac348043
Author: Walter Harms <wharms at bfs.de>
Date: Mon Aug 19 17:52:16 2019 +0200
FIX: malloc+memset=calloc
libc has a function to provide clean memory, so use it
Signed-off-by: Walter Harms <wharms at bfs.de>
commit 91860c7f6ab6e18bb2e0f0bfaa38e09274c6cc2e
Author: Walter Harms <wharms at bfs.de>
Date: Mon Aug 19 17:51:10 2019 +0200
remove unused debug code
code clean up
Signed-off-by: Walter Harms <wharms at bfs.de>
commit 69291d6837b11dec8ebde337d4535ea1ac025cac
Author: Walter Harms <wharms at bfs.de>
Date: Mon Aug 19 17:49:40 2019 +0200
no need-to-check argument for XFree
XFree() will accept NULL no need to check
Signed-off-by: Walter Harms <wharms at bfs.de>
commit ba98dbfd00d6d3860e3cac6246f4af408a7be858
Author: Walter Harms <wharms at bfs.de>
Date: Mon Aug 19 17:46:19 2019 +0200
FIX: warning: initialization discards `const' qualifier from pointer target type
make static char *AtomNames -> static const char *AtomNames
to avoid warning
xrestop.c:82:5: warning: initialization discards `const' qualifier from pointer target type [enabled by default]
"PIXMAP",
^
.....
but because XInternAtoms() expects a array of char * make a cast here
Signed-off-by: Walter Harms <wharms at bfs.de>
More information about the xorg-commit
mailing list