diff options
author | staffcvs <> | 2008-02-20 22:54:22 +0000 |
---|---|---|
committer | staffcvs <> | 2008-02-20 22:54:22 +0000 |
commit | c1aa93b7aa74d01cf1d1686e0c90decc24a344c6 (patch) | |
tree | a67600a73092d0ef66c9617869bfe30257e3a74a /src/symsocket.c | |
parent | 72bf4c274834b91ce599ae272fb5159913b8e033 (diff) | |
download | sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.tar.gz sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.tar.bz2 sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.zip |
*** empty log message ***
Diffstat (limited to 'src/symsocket.c')
-rw-r--r-- | src/symsocket.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/symsocket.c b/src/symsocket.c index bb8f4ff..ee5869a 100644 --- a/src/symsocket.c +++ b/src/symsocket.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.5 2008/02/20 22:54:22 staffcvs + * *** empty log message *** + * * Revision 1.4 2008/02/20 18:31:53 james * *** empty log message *** * @@ -37,7 +40,7 @@ wrap_recv (int fd, void *buf, int len) { int red; - red = recv (fd, buf, len,0); + red = recv (fd, buf, len, 0); if (!red) return -1; @@ -54,7 +57,7 @@ wrap_send (int fd, void *buf, int len) errno = 0; - writ = send (fd, buf, len,MSG_NOSIGNAL); + writ = send (fd, buf, len, MSG_NOSIGNAL); if (!writ) return -1; @@ -74,12 +77,13 @@ socket_free (Socket * s) slide_free (s->read_buf); if (s->write_buf) slide_free (s->write_buf); - if (s->path_to_unlink) { - unlink(s->path_to_unlink); - free(s->path_to_unlink); - } + if (s->path_to_unlink) + { + unlink (s->path_to_unlink); + free (s->path_to_unlink); + } close (s->fd); - free(s); + free (s); } void @@ -91,11 +95,11 @@ socket_free_parent (Socket * s) slide_free (s->read_buf); if (s->write_buf) slide_free (s->write_buf); - if (s->path_to_unlink) - free(s->path_to_unlink); + if (s->path_to_unlink) + free (s->path_to_unlink); close (s->fd); - free(s); + free (s); } @@ -145,7 +149,7 @@ socket_listen (char *path) ret->write_buf = NULL; ret->fd = fd; - ret->path_to_unlink=strdup(path); + ret->path_to_unlink = strdup (path); return ret; |