Skip to content

Commit f85adac

Browse files
committed
renepay: names by convention
Change functions json_pay and json_paystatus to json_renepay and json_renepaystatus to match the conventional naming. This is helpful for grep searches. Changelog-None Signed-off-by: Lagrang3 <[email protected]>
1 parent 44abd18 commit f85adac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/renepay/main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ static const char *init(struct command *init_cmd,
9494
return NULL;
9595
}
9696

97-
static struct command_result *json_paystatus(struct command *cmd,
98-
const char *buf,
99-
const jsmntok_t *params)
97+
static struct command_result *json_renepaystatus(struct command *cmd,
98+
const char *buf,
99+
const jsmntok_t *params)
100100
{
101101
const char *invstring;
102102
struct json_stream *ret;
@@ -159,8 +159,8 @@ static struct command_result * payment_start(struct payment *p)
159159
return payment_continue(p);
160160
}
161161

162-
static struct command_result *json_pay(struct command *cmd, const char *buf,
163-
const jsmntok_t *params)
162+
static struct command_result *json_renepay(struct command *cmd, const char *buf,
163+
const jsmntok_t *params)
164164
{
165165
/* === Parse command line arguments === */
166166
// TODO check if we leak some of these temporary variables
@@ -376,11 +376,11 @@ static struct command_result *json_pay(struct command *cmd, const char *buf,
376376
static const struct plugin_command commands[] = {
377377
{
378378
"renepaystatus",
379-
json_paystatus
379+
json_renepaystatus
380380
},
381381
{
382382
"renepay",
383-
json_pay
383+
json_renepay
384384
},
385385
};
386386

0 commit comments

Comments
 (0)