chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
src
/
symsocket.c
diff --git
a/src/symsocket.c
b/src/symsocket.c
index bb8f4fff6ca42d681738cbcb74b6b380ee447aab..ee5869a23c3220c4d95f637789ac91717074a695 100644
(file)
--- a/
src/symsocket.c
+++ b/
src/symsocket.c
@@
-11,6
+11,9
@@
static char rcsid[] =
/*
* $Log$
/*
* $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 ***
*
* 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;
{
int red;
- red = recv (fd, buf, len,0);
+ red = recv (fd, buf, len,
0);
if (!red)
return -1;
if (!red)
return -1;
@@
-54,7
+57,7
@@
wrap_send (int fd, void *buf, int len)
errno = 0;
errno = 0;
- writ = send (fd, buf, len,MSG_NOSIGNAL);
+ writ = send (fd, buf, len,
MSG_NOSIGNAL);
if (!writ)
return -1;
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);
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);
close (s->fd);
- free(s);
+ free
(s);
}
void
}
void
@@
-91,11
+95,11
@@
socket_free_parent (Socket * s)
slide_free (s->read_buf);
if (s->write_buf)
slide_free (s->write_buf);
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);
close (s->fd);
- free(s);
+ free
(s);
}
}
@@
-145,7
+149,7
@@
socket_listen (char *path)
ret->write_buf = NULL;
ret->fd = fd;
ret->write_buf = NULL;
ret->fd = fd;
- ret->path_to_unlink
=strdup
(path);
+ ret->path_to_unlink
= strdup
(path);
return ret;
return ret;