diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-10-08 13:22:13 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-10-08 13:22:13 -0700 |
commit | 8a91517ca6ea77633476595b0eb5b213357c60e5 (patch) | |
tree | b6250defde82716184b026b8b85fc2e3923d1dc4 /include | |
parent | 4e7bae89a887b189aa4c5e551ce0fba4a763df1a (diff) |
xkbtext.c: Add tbGetBufferString helper function
Handles common case of allocating & copying string to temporary buffer
As a side effect, clears up gcc warning:
xkbtext.c: In function ‘XkbBehaviorText’:
xkbtext.c:1476:19: warning: declaration of ‘tmp’ shadows a previous local [-Wshadow]
1476 | char *tmp;
| ^~~
xkbtext.c:1457:21: note: shadowed declaration is here
1457 | char buf[256], *tmp;
| ^~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions