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

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

From
Ivan Ukhov <ivan.ukhov@gmail.com>
Date
Mar 29, 2015, 08:32 UTC
Message-ID
<E8C3474A-5A3A-4A51-A798-84FB9AD46A9F@gmail.com>
Since the deletion of OPT_SET_PTR, defval can no longer contain a pointer.
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 {
--
1.8.4
Next: Paul Tan
Message 1 of 8 in “parse-options: fix the description of defval”
  1. parse-options: fix the description of defvalIvan Ukhov, Mar 29, 2015
  2. Paul TanMar 29, 2015
  3. Ivan UkhovMar 29, 2015
  4. Paul TanMar 29, 2015
  5. Ivan UkhovMar 29, 2015
  6. Junio C HamanoMar 29, 2015
  7. Ivan UkhovMar 29, 2015
  8. Junio C HamanoMar 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.