Skip to content

Commit

Permalink
Improved the structure of the programming in manage.c
Browse files Browse the repository at this point in the history
in manage.c, in function get_osp_performance_string(..):
  Moved the declaration of the variable "return_value"
  to the top of the function.
  • Loading branch information
jhelmold committed Jul 19, 2021
1 parent e4f77af commit 50ee82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -4009,7 +4009,7 @@ get_osp_performance_string (scanner_t scanner, int start, int end,
osp_connection_t *connection = NULL;
osp_get_performance_opts_t opts;
gchar *error;
int connection_retry;
int connection_retry, return_value;

host = scanner_host (scanner);
port = scanner_port (scanner);
Expand Down Expand Up @@ -4040,7 +4040,7 @@ get_osp_performance_string (scanner_t scanner, int start, int end,
error = NULL;

connection_retry = SCANNER_CONNECTION_RETRY_DEFAULT;
int return_value = 1;
return_value = 1;
while (return_value > 0 && connection_retry > 0)
{
return_value = osp_get_performance_ext (connection, opts,
Expand Down

0 comments on commit 50ee82b

Please sign in to comment.