git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] parse-options: fix the description of defval

From
Ivan Ukhov <ivan.ukhov@gmail.com>
Date
Mar 29, 2015, 18:33 UTC
Message-ID
<1C828CFA-F4EA-44D6-98F7-3F5F32D74621@gmail.com>
OPTION_BIT and OPTION_SET_INT do not store pointers in defval.
Signed-off-by: Ivan Ukhov <ivan.ukhov@gmail.com>
---
 parse-options.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/parse-options.h b/parse-options.h
index 7940bc7..c71e9da 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -95,8 +95,7 @@ typedef int parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
  *
  * `defval`::
  *   default value to fill (*->value) with for PARSE_OPT_OPTARG.
- *   OPTION_{BIT,SET_INT} store the {mask,integer,pointer} to put in
- *   the value when met.
+ *   OPTION_{BIT,SET_INT} store the {mask,integer} to put in the value when met.
  *   CALLBACKS can use it like they want.
  */
 struct option {
--
2.3.4
Message 1 of 1 in “parse-options: fix the description of defval”
  1. parse-options: fix the description of defvalIvan Ukhov, Mar 29, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.