Skip to content

Commit 0e98426

Browse files
Lagrang3endothermicdev
authored andcommitted
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 ddb62a1 commit 0e98426

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
@@ -96,9 +96,9 @@ static const char *init(struct command *init_cmd,
9696
return NULL;
9797
}
9898

99-
static struct command_result *json_paystatus(struct command *cmd,
100-
const char *buf,
101-
const jsmntok_t *params)
99+
static struct command_result *json_renepaystatus(struct command *cmd,
100+
const char *buf,
101+
const jsmntok_t *params)
102102
{
103103
const char *invstring;
104104
struct json_stream *ret;
@@ -161,8 +161,8 @@ static struct command_result * payment_start(struct payment *p)
161161
return payment_continue(p);
162162
}
163163

164-
static struct command_result *json_pay(struct command *cmd, const char *buf,
165-
const jsmntok_t *params)
164+
static struct command_result *json_renepay(struct command *cmd, const char *buf,
165+
const jsmntok_t *params)
166166
{
167167
/* === Parse command line arguments === */
168168
// TODO check if we leak some of these temporary variables
@@ -452,11 +452,11 @@ static struct command_result *json_pay(struct command *cmd, const char *buf,
452452
static const struct plugin_command commands[] = {
453453
{
454454
"renepaystatus",
455-
json_paystatus
455+
json_renepaystatus
456456
},
457457
{
458458
"renepay",
459-
json_pay
459+
json_renepay
460460
},
461461
{
462462
"renesendpay",

0 commit comments

Comments
 (0)