libXRes: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 29 19:37:02 UTC 2022
src/XRes.c | 84 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 36 insertions(+), 48 deletions(-)
New commits:
commit bed46b55c06a3488971fda8271cf9fc0e3dd84d5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 20 11:07:30 2022 -0800
Use calloc instead of malloc to allocate arrays
Makes code more consistent with other functions in this library
which already do this and adds extra protection against overflows
or failures to properly fill in values.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit c71236d5ae587f6a673a8bf1b6fd5de64a3ba78c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 20 11:03:55 2022 -0800
Handle implicit conversion warnings from clang
Clears 6 -Wimplicit-int-conversion, 6 -Wshorten-64-to-32, and
7 -Wsign-conversion warnings.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 9e0db673a7869861eeb6eccbc8270a019f4aacd1
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 20 10:31:39 2022 -0800
Resolve -Wsign-compare warnings from gcc
XRes.c: In function ‘XResQueryClients’:
XRes.c:121:31: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
for (int i = 0; i < rep.num_clients; i++) {
^
XRes.c: In function ‘XResQueryClientResources’:
XRes.c:176:31: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
for (int i = 0; i < rep.num_types; i++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit a43105c0da6613798437afaa531c2a576f8efc99
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 20 10:30:10 2022 -0800
Variable scope reductions
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list