• Paul Eggert's avatar
    emacsclient: sockaddr portability fixes · 5773470f
    Paul Eggert authored
    * lib-src/emacsclient.c (get_server_config, set_tcp_socket)
    (set_local_socket): Initialize any platform-specific extensions
    of struct to zero, just in case.
    (set_tcp_socket, set_local_socket): Don’t assume struct
    layout details that POSIX does not specify.
    Use union to sidestep some problems with strict aliasing.
    Remove unnecessary casts.
    5773470f
emacsclient.c 49.7 KB