From 0fd87393066ba5a6f0245b8a54b4fd47b281dfce Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 6 Jul 2013 20:20:41 +0200 Subject: [PATCH] net.c: Add documentation of flowopt_new(). It's not obvious that the returned structure does not need to be freed by the caller, so let's document this fact. --- net.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net.c b/net.c index c18e7a0a..2ec3f03e 100644 --- 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)); -- 2.39.5