[ovs-dev] [PATCH 3/3] expr: Document error handling for expr_annotate().

Justin Pettit jpettit at nicira.com
Tue Oct 13 23:39:01 UTC 2015


Signed-off-by: Justin Pettit <jpettit at nicira.com>
---
 ovn/lib/expr.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ovn/lib/expr.c b/ovn/lib/expr.c
index 8270b82..8ec62b5 100644
--- a/ovn/lib/expr.c
+++ b/ovn/lib/expr.c
@@ -1480,7 +1480,10 @@ expr_annotate__(struct expr *expr, const struct shash *symtab,
  *     - Expands references to predicate symbols, by replacing them by the
  *       expressions that they expand to.
  *
- * In each case, annotation occurs recursively as necessary. */
+ * In each case, annotation occurs recursively as necessary.
+ *
+ * On failure, returns NULL and sets '*errorp' to an explanatory error
+ * message, which the caller must free. */
 struct expr *
 expr_annotate(struct expr *expr, const struct shash *symtab, char **errorp)
 {
-- 
1.7.5.4




More information about the dev mailing list