FreeCalypso > hg > freecalypso-sw
comparison rvinterf/etmsync/connect.c @ 915:7b805007dcfc
etmsync: slight "main" refactoring in preparation for multiple programs
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 08 Sep 2015 18:26:42 +0000 |
parents | 909f00c15f27 |
children |
comparison
equal
deleted
inserted
replaced
914:de0505be800d | 915:7b805007dcfc |
---|---|
12 #include <unistd.h> | 12 #include <unistd.h> |
13 #include "pktmux.h" | 13 #include "pktmux.h" |
14 #include "localsock.h" | 14 #include "localsock.h" |
15 #include "exitcodes.h" | 15 #include "exitcodes.h" |
16 | 16 |
17 extern char *socket_pathname; | 17 char *socket_pathname = "/tmp/rvinterf_socket"; |
18 extern int sock; | 18 int sock; |
19 | 19 |
20 connect_local_socket() | 20 connect_local_socket() |
21 { | 21 { |
22 /* local socket binding voodoo copied from osmocon */ | 22 /* local socket binding voodoo copied from osmocon */ |
23 struct sockaddr_un local; | 23 struct sockaddr_un local; |