]> git.eshelyaron.com Git - emacs.git/commit
emacsclient: sockaddr portability fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Nov 2018 17:21:22 +0000 (09:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Nov 2018 17:24:51 +0000 (09:24 -0800)
commit5773470ff3a85640fbaeab1a88edc3fa395184bd
treeeff420595f2bf7125d705f2f826a54360127d1c6
parenta344d9937bb7edfbfbea13dca1569fcdcad25ac2
emacsclient: sockaddr portability fixes

* 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.
lib-src/emacsclient.c