@@ -118,6 +118,7 @@ struct reply {
118118
119119/* Calls itself repeatedly: first time, result is NULL */
120120static struct command_result * send_response (struct command * cmd ,
121+ const char * method UNUSED ,
121122 const char * buf UNUSED ,
122123 const jsmntok_t * result ,
123124 struct reply * reply )
@@ -157,6 +158,7 @@ static struct command_result *send_response(struct command *cmd,
157158}
158159
159160static struct command_result * cmd_done (struct command * command ,
161+ const char * method ,
160162 const char * buf ,
161163 const jsmntok_t * obj ,
162164 struct commando * incoming )
@@ -190,7 +192,7 @@ static struct command_result *cmd_done(struct command *command,
190192 }
191193 reply -> off = 0 ;
192194
193- return send_response (command , NULL , NULL , reply );
195+ return send_response (command , NULL , NULL , NULL , reply );
194196}
195197
196198static struct command_result * commando_error (struct command * cmd ,
@@ -216,7 +218,7 @@ static struct command_result *commando_error(struct command *cmd,
216218 reply -> off = 0 ;
217219 reply -> len = tal_bytelen (reply -> buf ) - 1 ;
218220
219- return send_response (cmd , NULL , NULL , reply );
221+ return send_response (cmd , NULL , NULL , NULL , reply );
220222}
221223
222224struct cond_info {
@@ -322,6 +324,7 @@ static struct command_result *execute_command(struct command *cmd,
322324}
323325
324326static struct command_result * checkrune_done (struct command * cmd ,
327+ const char * method ,
325328 const char * buf ,
326329 const jsmntok_t * result ,
327330 struct cond_info * cinfo )
@@ -349,6 +352,7 @@ static struct command_result *checkrune_done(struct command *cmd,
349352}
350353
351354static struct command_result * checkrune_failed (struct command * cmd ,
355+ const char * method ,
352356 const char * buf ,
353357 const jsmntok_t * result ,
354358 struct cond_info * cinfo )
@@ -619,6 +623,7 @@ struct outgoing {
619623};
620624
621625static struct command_result * send_more_cmd (struct command * cmd ,
626+ const char * method UNUSED ,
622627 const char * buf UNUSED ,
623628 const jsmntok_t * result UNUSED ,
624629 struct outgoing * outgoing )
@@ -705,19 +710,20 @@ static struct command_result *json_commando(struct command *cmd,
705710 outgoing -> msgs [i ] = cmd_msg ;
706711 }
707712
708- return send_more_cmd (cmd , NULL , NULL , outgoing );
713+ return send_more_cmd (cmd , NULL , NULL , NULL , outgoing );
709714}
710715
711716/* Handles error or success */
712717static struct command_result * forward_reply (struct command * cmd ,
718+ const char * method ,
713719 const char * buf ,
714720 const jsmntok_t * result ,
715721 void * arg )
716722{
717723 const jsmntok_t * err = json_get_member (buf , result , "error" );
718724 if (err )
719- return forward_error (cmd , buf , err , arg );
720- return forward_result (cmd , buf , json_get_member (buf , result , "result" ), arg );
725+ return forward_error (cmd , method , buf , err , arg );
726+ return forward_result (cmd , method , buf , json_get_member (buf , result , "result" ), arg );
721727}
722728
723729static struct command_result * forward_command (struct command * cmd ,
0 commit comments