AF_UNIX and PF_UNIX is more portable than the _LOCAL equivalent.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@376 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-01-05 18:27:09 +00:00
parent dbad54a20b
commit 3a3b4aff37
3 changed files with 6 additions and 6 deletions

View file

@ -203,7 +203,7 @@ struct pa_socket_client* pa_socket_client_new_unix(struct pa_mainloop_api *m, co
assert(m && filename);
memset(&sa, 0, sizeof(sa));
sa.sun_family = AF_LOCAL;
sa.sun_family = AF_UNIX;
strncpy(sa.sun_path, filename, sizeof(sa.sun_path)-1);
sa.sun_path[sizeof(sa.sun_path) - 1] = 0;