From: Mauricio Vasquez B Date: Sun, 14 Aug 2016 16:21:40 +0000 (+0200) Subject: doc: fix versioning example X-Git-Tag: spdx-start~6030 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=27746740d0acf90b80e57b72685dd03f42147128;p=dpdk.git doc: fix versioning example The example only had as return type struct, it is actually struct rte_acl_ctx * Signed-off-by: Mauricio Vasquez B --- diff --git a/doc/guides/contributing/versioning.rst b/doc/guides/contributing/versioning.rst index 92b4d7ca7e..08e2e217d9 100644 --- a/doc/guides/contributing/versioning.rst +++ b/doc/guides/contributing/versioning.rst @@ -331,11 +331,12 @@ defined, we add this .. code-block:: c - struct rte_acl_create_v21(const struct rte_acl_param *param, int debug) + struct rte_acl_ctx * + rte_acl_create_v21(const struct rte_acl_param *param, int debug) { ... } - MAP_STATIC_SYMBOL(struct rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v21); + MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v21); That tells the compiler that, when building a static library, any calls to the symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v21``