@@ -58,7 +58,7 @@ static void param_slash_parse(char * arg, int node, param_t **param, int *offset
5858
5959}
6060
61- static void param_completer (struct slash * slash , char * token ) {
61+ static void param_completer (slash_t * slash , char * token ) {
6262
6363 int matches = 0 ;
6464 size_t prefixlen = -1 ;
@@ -136,7 +136,7 @@ static void param_completer(struct slash *slash, char * token) {
136136 if (skip_prefix ) slash_completer_revert_skip (slash , orig_slash_buf );
137137}
138138
139- static int cmd_get (struct slash * slash ) {
139+ static int cmd_get (slash_t * slash ) {
140140
141141 int node = slash_dfl_node ;
142142 int paramver = 2 ;
@@ -204,7 +204,7 @@ static int cmd_get(struct slash *slash) {
204204}
205205slash_command_completer (get , cmd_get , param_completer , "<param>" , "Get" );
206206
207- static int cmd_set (struct slash * slash ) {
207+ static int cmd_set (slash_t * slash ) {
208208
209209 int node = slash_dfl_node ;
210210 int paramver = 2 ;
@@ -299,7 +299,7 @@ slash_command_completer(set, cmd_set, param_completer, "<param> <value>", "Set")
299299
300300
301301
302- static int cmd_add (struct slash * slash ) {
302+ static int cmd_add (slash_t * slash ) {
303303
304304 int node = slash_dfl_node ;
305305 char * include_mask_str = NULL ;
@@ -417,7 +417,7 @@ static int cmd_add(struct slash *slash) {
417417}
418418slash_command_sub_completer (cmd , add , cmd_add , param_completer , "<param>[offset] [value]" , "Add a new parameter to a command" );
419419
420- static int cmd_run (struct slash * slash ) {
420+ static int cmd_run (slash_t * slash ) {
421421
422422 unsigned int timeout = slash_dfl_timeout ;
423423 unsigned int server = slash_dfl_node ;
@@ -464,7 +464,7 @@ static int cmd_run(struct slash *slash) {
464464}
465465slash_command_sub (cmd , run , cmd_run , "" , NULL );
466466
467- static int cmd_pull (struct slash * slash ) {
467+ static int cmd_pull (slash_t * slash ) {
468468
469469 unsigned int timeout = slash_dfl_timeout ;
470470 unsigned int server = slash_dfl_node ;
@@ -505,7 +505,7 @@ static int cmd_pull(struct slash *slash) {
505505}
506506slash_command (pull , cmd_pull , "" , "Pull all metrics" );
507507
508- static int cmd_new (struct slash * slash ) {
508+ static int cmd_new (slash_t * slash ) {
509509
510510 int paramver = 2 ;
511511 char * name = NULL ;
@@ -559,14 +559,14 @@ static int cmd_new(struct slash *slash) {
559559slash_command_sub (cmd , new , cmd_new , "<get/set> <cmd name>" , "Create a new command" );
560560
561561
562- static int cmd_done (struct slash * slash ) {
562+ static int cmd_done (slash_t * slash ) {
563563 param_queue .type = PARAM_QUEUE_TYPE_EMPTY ;
564564 return SLASH_SUCCESS ;
565565}
566566slash_command_sub (cmd , done , cmd_done , "" , "Exit cmd edit mode" );
567567
568568
569- static int cmd_print (struct slash * slash ) {
569+ static int cmd_print (slash_t * slash ) {
570570 if (param_queue .type == PARAM_QUEUE_TYPE_EMPTY ) {
571571 printf ("No active command\n" );
572572 } else {
0 commit comments