expr: Document error handling for expr_annotate().
authorJustin Pettit <jpettit@nicira.com>
Tue, 13 Oct 2015 23:28:36 +0000 (16:28 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 14 Oct 2015 00:40:44 +0000 (17:40 -0700)
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovn/lib/expr.c

index 8270b82..8ec62b5 100644 (file)
@@ -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)
 {