Skip to content

Commit 7973f2c

Browse files
libguile-ssh: Fix warnings
* libguile-ssh/key-type.c, libguile-ssh/message-type.c, libguile-ssh/server-type.c, libguile-ssh/session-type.c, libguile-ssh/sftp-file-type.c, libguile-ssh/sftp-session-type.c: Convert a converter procedure to 'converter_t' before passing to 'compare_objects'.
1 parent 6813538 commit 7973f2c

6 files changed

+6
-6
lines changed

libguile-ssh/key-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ _free (SCM arg1)
8888
static SCM
8989
_equalp (SCM x1, SCM x2)
9090
{
91-
return compare_objects(x1, x2, gssh_key_from_scm);
91+
return compare_objects(x1, x2, (converter_t) gssh_key_from_scm);
9292
}
9393

9494
static int

libguile-ssh/message-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ _print (SCM smob, SCM port, scm_print_state *pstate)
6666
SCM
6767
_equalp (SCM x1, SCM x2)
6868
{
69-
return compare_objects(x1, x2, _scm_to_message_data);
69+
return compare_objects(x1, x2, (converter_t) _scm_to_message_data);
7070
}
7171

7272

libguile-ssh/server-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _free (SCM server)
5454
static SCM
5555
_equalp (SCM x1, SCM x2)
5656
{
57-
return compare_objects(x1, x2, gssh_server_from_scm);
57+
return compare_objects(x1, x2, (converter_t) gssh_server_from_scm);
5858
}
5959

6060
static int

libguile-ssh/session-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _free (SCM session)
6060
static SCM
6161
_equalp (SCM x1, SCM x2)
6262
{
63-
return compare_objects(x1, x2, gssh_session_from_scm);
63+
return compare_objects(x1, x2, (converter_t) gssh_session_from_scm);
6464
}
6565

6666
static int

libguile-ssh/sftp-file-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ptob_input_waiting (SCM file)
130130
static SCM
131131
equalp_sftp_file (SCM x1, SCM x2)
132132
{
133-
return compare_objects(x1, x2, gssh_sftp_file_from_scm);
133+
return compare_objects(x1, x2, (converter_t) gssh_sftp_file_from_scm);
134134
}
135135
#endif
136136

libguile-ssh/sftp-session-type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _free (SCM sftp_session)
5454
static SCM
5555
_equalp (SCM x1, SCM x2)
5656
{
57-
return compare_objects(x1, x2, gssh_sftp_session_from_scm);
57+
return compare_objects(x1, x2, (converter_t) gssh_sftp_session_from_scm);
5858
}
5959

6060
/* Printing procedure. */

0 commit comments

Comments
 (0)