Skip to content

Commit

Permalink
ccan: update to latest version
Browse files Browse the repository at this point in the history
Gives us more room for user bits in opt.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Nov 12, 2024
1 parent e261301 commit 101aeea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ccan/README
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CCAN imported from http://ccodearchive.net.

CCAN version: init-2587-gf927e4be
CCAN version: init-2589-g161fe383
4 changes: 2 additions & 2 deletions ccan/ccan/opt/opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ struct opt_table *opt_find_short(char arg);
* You can set bits in type e.g. (1<<OPT_USER_START) to (1<<OPT_USER_END)
* when calling _opt_register. */
#define OPT_USER_START 8
#define OPT_USER_END 15
#define OPT_USER_END 30

/* Below here are private declarations. */
/* You can use this directly to build tables, but the macros will ensure
Expand All @@ -540,7 +540,7 @@ enum opt_type {
OPT_HASARG = 2, /* -f arg|--foo=arg|--foo arg */
OPT_SUBTABLE = 4, /* Actually, longopt points to a subtable... */
OPT_EARLY = 8, /* Parse this from opt_early_parse() only. */
OPT_END = 16, /* End of the table. */
OPT_END = 31, /* End of the table. */

/* Make sure no compiler will assume we never have large
* values in the enum! */
Expand Down
2 changes: 1 addition & 1 deletion ccan/ccan/tcon/tcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
* It evaluates to @x so you can chain it.
*/
#define tcon_check_ptr(x, canary, expr) \
(sizeof((expr) ? (expr) : &(x)->_tcon[0].canary) ? (x) : (x))
(sizeof(0 ? (expr) : &(x)->_tcon[0].canary) ? (x) : (x))

/**
* tcon_type - the type within a container (or void *)
Expand Down

0 comments on commit 101aeea

Please sign in to comment.