Fix two issues on OS X, a non-compatible use of the expr command and a bad init of a socket for the universal variable daemon

darcs-hash:20060109144418-ac50b-c6232eae5b964f66d0638289291340aa66cd5983.gz
This commit is contained in:
axel
2006-01-10 00:44:18 +10:00
parent ce689e69d5
commit ae511451fe
5 changed files with 7 additions and 7 deletions

View File

@@ -174,8 +174,8 @@ static int get_socket()
local.sun_family = AF_UNIX;
strcpy( local.sun_path, sock_name );
len = strlen( local.sun_path ) + sizeof( local.sun_family );
len = sizeof(local);
debug(1, L"Connect to socket at %s", sock_name);
if( ( s = socket( AF_UNIX, SOCK_STREAM, 0 ) ) == -1 )