Skip to content

Commit

Permalink
Change: remove old arg from manager_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and bjoernricks committed Oct 16, 2023
1 parent 3f9922b commit 50190ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/gsad.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ exec_gmp_post (http_connection_t *con, gsad_connection_info_t *con_info,
}

/* Connect to manager */
switch (manager_connect (credentials, &connection, response_data))
switch (manager_connect (credentials, &connection))
{
case 0:
break;
Expand Down Expand Up @@ -1284,7 +1284,7 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
}

/* Connect to manager */
switch (manager_connect (credentials, &connection, response_data))
switch (manager_connect (credentials, &connection))
{
case 0:
break;
Expand Down
4 changes: 1 addition & 3 deletions src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17023,14 +17023,12 @@ login (http_connection_t *con, params_t *params,
*
* @param[in] credentials Username and password for authentication.
* @param[out] connection Connection to Manager on success.
* @param[out] response_data Extra data return for the HTTP response.
*
* @return 0 success, 1 if manager closed connection, 2 if auth failed,
* 3 on timeout, 4 failed to connect, -1 on error
*/
int
manager_connect (credentials_t *credentials, gvm_connection_t *connection,
cmd_response_data_t *response_data)
manager_connect (credentials_t *credentials, gvm_connection_t *connection)
{
gmp_authenticate_info_opts_t auth_opts;

Expand Down
2 changes: 1 addition & 1 deletion src/gsad_gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void
gmp_init (const gchar *, const gchar *, int);

int
manager_connect (credentials_t *, gvm_connection_t *, cmd_response_data_t *);
manager_connect (credentials_t *, gvm_connection_t *);

char *
clone_gmp (gvm_connection_t *, credentials_t *, params_t *,
Expand Down
2 changes: 1 addition & 1 deletion src/gsad_http_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ handle_system_report (http_connection_t *connection, const char *method,
response_data = cmd_response_data_new ();

/* Connect to manager */
switch (manager_connect (credentials, &con, response_data))
switch (manager_connect (credentials, &con))
{
case 0: /* success */
res = get_system_report_gmp_from_url (
Expand Down

0 comments on commit 50190ad

Please sign in to comment.