File transfer examples

master
Mark Qvist 2014-05-26 18:17:39 +02:00
parent 4f2a7905f3
commit 464259d5f9
2 changed files with 0 additions and 2 deletions

View File

@ -75,7 +75,6 @@ int main(int argc, char **argv) {
remote.sun_family = AF_UNIX;
strcpy(remote.sun_path, socket_path);
printf("Opening socket at %s\n", remote.sun_path);
int len = strlen(remote.sun_path) + sizeof(remote.sun_family);
if (connect(wiSocket, (struct sockaddr*)&remote, len) == -1) {
perror("connect");

View File

@ -76,7 +76,6 @@ int main(int argc, char **argv) {
remote.sun_family = AF_UNIX;
strcpy(remote.sun_path, socket_path);
printf("Opening socket at %s\n", remote.sun_path);
int len = strlen(remote.sun_path) + sizeof(remote.sun_family);
if (connect(wiSocket, (struct sockaddr*)&remote, len) == -1) {
perror("connect");