Skip to content

Commit

Permalink
Merge pull request #43 from ptillemans/master
Browse files Browse the repository at this point in the history
Fix compile error caused by bool identifier
  • Loading branch information
artyom-poptsov authored Sep 18, 2024
2 parents f3891b8 + 30fc103 commit 7f603a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libguile-ssh/session-func.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ set_int32_opt (ssh_session session, int type, SCM value)
static inline int
set_bool_opt (ssh_session session, int type, SCM value)
{
int32_t bool;
int32_t bool_value;

SCM_ASSERT (scm_is_bool (value), value, SCM_ARG3, "session-set!");

bool = scm_to_bool (value);
return ssh_options_set (session, type, &bool);
bool_value = scm_to_bool (value);
return ssh_options_set (session, type, &bool_value);
}

/* Convert VALUE to a socket file descriptor and pass it to
Expand Down

0 comments on commit 7f603a9

Please sign in to comment.