From 4b98df186d117d6c7a1e0096a35a9640887a110b Mon Sep 17 00:00:00 2001 From: tony Date: Sat, 24 Dec 2022 12:56:40 +0100 Subject: [PATCH] common: update comments documenting the use of param() The file common/json_tok.c has been removed in a previous commit. Changelog-None --- common/json_param.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common/json_param.h b/common/json_param.h index 6086d5c2a..19c924b66 100644 --- a/common/json_param.h +++ b/common/json_param.h @@ -21,14 +21,12 @@ * * unsigned *cltv; * u64 *msatoshi; - * const jsmntok_t *note; * u64 *expiry; * * if (!param(cmd, buffer, params, - * p_req("cltv", json_tok_number, &cltv), - * p_opt("msatoshi", json_tok_u64, &msatoshi), - * p_opt("note", json_tok_tok, ¬e), - * p_opt_def("expiry", json_tok_u64, &expiry, 3600), + * p_req("cltv", param_number, &cltv), + * p_opt("msatoshi", param_u64, &msatoshi), + * p_opt_def("expiry", param_u64, &expiry, 3600), * NULL)) * return; * @@ -36,7 +34,7 @@ * * All the command handlers throughout the code use this system. * json_invoice() is a great example. The common callbacks can be found in - * common/json_tok.c. Use them directly or feel free to write your own. + * common/json_param.c. Use them directly or feel free to write your own. */ struct command;