xhost: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Thu Mar 8 21:21:10 PST 2012


 xhost.c |   17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

New commits:
commit b38ed3d9e9100347c738b3abd12ec4dab1a5f395
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Fri Mar 2 17:13:27 2012 -0800

    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 at oracle.com>



More information about the xorg-commit mailing list