Skip to content

Commit 5649984

Browse files
Lagrang3rustyrussell
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 d0fafa0 commit 5649984

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

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

163-
static struct command_result *json_pay(struct command *cmd, const char *buf,
164-
const jsmntok_t *params)
163+
static struct command_result *json_renepay(struct command *cmd, const char *buf,
164+
const jsmntok_t *params)
165165
{
166166
/* === Parse command line arguments === */
167167
// TODO check if we leak some of these temporary variables
@@ -377,11 +377,11 @@ static struct command_result *json_pay(struct command *cmd, const char *buf,
377377
static const struct plugin_command commands[] = {
378378
{
379379
"renepaystatus",
380-
json_paystatus
380+
json_renepaystatus
381381
},
382382
{
383383
"renepay",
384-
json_pay
384+
json_renepay
385385
},
386386
};
387387

0 commit comments

Comments
 (0)