Skip to contentSkip to conversation

cfgfile: fix return value comment

PATCH Applied Dmitriy Yakovlev 3 participants 3 messages Apr 15, 2016 – May 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfgfile: fix return value comment

Function rte_cfgfile_load can return NULL value, when something goes wrong.

---
 lib/librte_cfgfile/rte_cfgfile.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_cfgfile/rte_cfgfile.h +1 -1
index 834f828..f649836 100644
@@ -72,7 +72,7 @@ struct rte_cfgfile_entry {
 * @param flags
 *   Config file flags, Reserved for future use. Must be set to 0.
 * @return
-*   Handle to configuration file
+*   Handle to configuration file on success, NULL otherwise
 */
 struct rte_cfgfile *rte_cfgfile_load(const char *filename, int flags);
 
Signature · 1 line
2.6.2.windows.1
Acked-by on v1 1/1
#1 lore raw
Quoted 31 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Dmitriy Yakovlev
Sent: Friday, April 15, 2016 11:59 PM
To: [email protected]
Cc: Dmitriy Yakovlev <[email protected]>
Subject: [dpdk-dev] [PATCH] cfgfile: fix return value comment

Function rte_cfgfile_load can return NULL value, when something goes wrong.

---
 lib/librte_cfgfile/rte_cfgfile.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_cfgfile/rte_cfgfile.h +1 -2
index 834f828..f649836 100644
@@ -72,7 +72,7 @@ struct rte_cfgfile_entry {
 * @param flags
 *   Config file flags, Reserved for future use. Must be set to 0.
 * @return
-*   Handle to configuration file
+*   Handle to configuration file on success, NULL otherwise
 */
 struct rte_cfgfile *rte_cfgfile_load(const char *filename, int flags);
 
--
Quoted 1 line

2.6.2.windows.1