/*
* $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 ***
*
{
int red;
- red = recv (fd, buf, len,0);
+ red = recv (fd, buf, len, 0);
if (!red)
return -1;
errno = 0;
- writ = send (fd, buf, len,MSG_NOSIGNAL);
+ writ = send (fd, buf, len, MSG_NOSIGNAL);
if (!writ)
return -1;
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
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);
}
ret->write_buf = NULL;
ret->fd = fd;
- ret->path_to_unlink=strdup(path);
+ ret->path_to_unlink = strdup (path);
return ret;