[Pcsclite-cvs-commit] r4395 - in /trunk/PCSC/src: winscard_msg.c winscard_msg_srv.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Sep 23 12:14:45 UTC 2009


Author: rousseau
Date: Wed Sep 23 12:14:44 2009
New Revision: 4395

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4395
Log:
use the POSIX name AF_LOCAL instead of AF_UNIX

Modified:
    trunk/PCSC/src/winscard_msg.c
    trunk/PCSC/src/winscard_msg_srv.c

Modified: trunk/PCSC/src/winscard_msg.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg.c?rev=4395&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg.c (original)
+++ trunk/PCSC/src/winscard_msg.c Wed Sep 23 12:14:44 2009
@@ -78,7 +78,7 @@
 	int one;
 	int ret;
 
-	ret = socket(AF_UNIX, SOCK_STREAM, 0);
+	ret = socket(AF_LOCAL, SOCK_STREAM, 0);
 	if (ret < 0)
 	{
 		Log2(PCSC_LOG_CRITICAL, "Error: create on client socket: %s",
@@ -87,7 +87,7 @@
 	}
 	*pdwClientID = ret;
 
-	svc_addr.sun_family = AF_UNIX;
+	svc_addr.sun_family = AF_LOCAL;
 	strncpy(svc_addr.sun_path, PCSCLITE_CSOCK_NAME,
 		sizeof(svc_addr.sun_path));
 

Modified: trunk/PCSC/src/winscard_msg_srv.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg_srv.c?rev=4395&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg_srv.c (original)
+++ trunk/PCSC/src/winscard_msg_srv.c Wed Sep 23 12:14:44 2009
@@ -137,14 +137,14 @@
 	/*
 	 * Create the common shared connection socket
 	 */
-	if ((commonSocket = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
+	if ((commonSocket = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0)
 	{
 		Log2(PCSC_LOG_CRITICAL, "Unable to create common socket: %s",
 			strerror(errno));
 		return -1;
 	}
 
-	serv_adr.sun_family = AF_UNIX;
+	serv_adr.sun_family = AF_LOCAL;
 	strncpy(serv_adr.sun_path, PCSCLITE_CSOCK_NAME,
 		sizeof(serv_adr.sun_path));
 	(void)SYS_RemoveFile(PCSCLITE_CSOCK_NAME);




More information about the Pcsclite-cvs-commit mailing list