diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-03-02 17:13:27 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-03-08 21:18:43 -0800 |
commit | b38ed3d9e9100347c738b3abd12ec4dab1a5f395 (patch) | |
tree | 733b1a776f2388dead68694e7ccacb7c6ac41813 /configure.ac | |
parent | ab99e025529b9029759470e9e085bb344f7fe4f5 (diff) |
Rework si:type:value code to remove need for shadowed namelen variable
Fixes gcc warning:
xhost.c:453:6: warning: declaration of ‘namelen’ shadows a previous local
xhost.c:339:9: warning: shadowed declaration is here
Also removes unnecessary malloc and memcpy by just using the string
pointers we already have, since XAddHost & XRemoveHost will copy the
specified length of text from the strings to the Xlib request buffer
before returning, not relying on nil termination.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions