FreeCalypso > hg > freecalypso-sw
diff rvinterf/etmsync/connect.c @ 276:909f00c15f27
more fc-fsio foundation
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 23 Feb 2014 21:31:30 +0000 |
parents | cedf09b6b5ac |
children | 7b805007dcfc |
line wrap: on
line diff
--- a/rvinterf/etmsync/connect.c Sun Feb 23 20:27:15 2014 +0000 +++ b/rvinterf/etmsync/connect.c Sun Feb 23 21:31:30 2014 +0000 @@ -12,6 +12,7 @@ #include <unistd.h> #include "pktmux.h" #include "localsock.h" +#include "exitcodes.h" extern char *socket_pathname; extern int sock; @@ -26,7 +27,7 @@ sock = socket(AF_UNIX, SOCK_STREAM, 0); if (sock < 0) { perror("socket(AF_UNIX, SOCK_STREAM, 0)"); - exit(1); + exit(ERROR_UNIX); } local.sun_family = AF_UNIX; @@ -48,7 +49,7 @@ rc = connect(sock, (struct sockaddr *) &local, namelen); if (rc != 0) { perror(socket_pathname); - exit(1); + exit(ERROR_RVINTERF); } return(0);