Skip to content

Commit

Permalink
[nozzle] be more explicit on function naming
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Dec 15, 2018
1 parent c9bb69a commit 7c867f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions libnozzle/internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int read_pipe(int fd, char **file, size_t *length)
return 0;
}

int execute_shell_command(const char *command, char **error_string)
int execute_bin_sh_command(const char *command, char **error_string)
{
pid_t pid;
int status, err = 0;
Expand Down Expand Up @@ -151,7 +151,7 @@ int run_updown(const nozzle_t nozzle, const char *action, char **error_string)
if ((err < 0) && (errno == ENOENT))
return 0;

err = execute_shell_command(command, error_string);
err = execute_bin_sh_command(command, error_string);
if ((!err) && (*error_string)) {
free(*error_string);
*error_string = NULL;
Expand Down Expand Up @@ -976,7 +976,7 @@ static int _set_ip(nozzle_t nozzle, const char *command,
if (broadcast) {
free(broadcast);
}
return _execute_shell(cmdline, error_string);
return _execute_bin_sh(cmdline, error_string);
}

static int _find_ip(nozzle_t nozzle,
Expand Down
2 changes: 1 addition & 1 deletion libnozzle/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct nozzle_iface {

#define ifname ifr.ifr_name

int execute_shell_command(const char *command, char **error_string);
int execute_bin_sh_command(const char *command, char **error_string);
int run_updown(const nozzle_t nozzle, const char *action, char **error_string);

#endif
2 changes: 1 addition & 1 deletion libnozzle/libnozzle.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ static int _set_ip(nozzle_t nozzle, const char *command,
if (broadcast) {
free(broadcast);
}
return execute_shell_command(cmdline, error_string);
return execute_bin_sh_command(cmdline, error_string);
}

static int _find_ip(nozzle_t nozzle,
Expand Down

0 comments on commit 7c867f6

Please sign in to comment.