]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.c
paraslash 0.4.14
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index c18e7a0a19cfa1ff741fee6b8f3e0232a4813b7d..708e83f2aae7df4d17a7d59abea182ec657d1911 100644 (file)
--- a/net.c
+++ b/net.c
@@ -264,6 +264,12 @@ struct flowopts {
        struct list_head sockopts;
 };
 
+/**
+ * Allocate and initialize a flowopt queue.
+ *
+ * \return A new structure to be passed to \ref flowopt_add(). It is
+ * automatically deallocated in \ref makesock().
+ */
 struct flowopts *flowopt_new(void)
 {
        struct flowopts *new = para_malloc(sizeof(*new));
@@ -974,7 +980,7 @@ static void dispose_fds(int *fds, unsigned num)
  */
 int recv_cred_buffer(int fd, char *buf, size_t size)
 {
-       char control[255];
+       char control[255] __a_aligned(8);
        struct msghdr msg;
        struct cmsghdr *cmsg;
        struct iovec iov;