Skip to content

Commit

Permalink
plugins: fix return type of TCPSessGSSRecv()
Browse files Browse the repository at this point in the history
The declaration and the implementation must use the same return type to
avoid an error -Werror=enum-int-mismatch.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
  • Loading branch information
xypron committed Dec 8, 2023
1 parent 8ea8305 commit 44b2642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/imgssapi/imgssapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ OnSessAcceptGSS(tcpsrv_t *pThis, tcps_sess_t *pSess)

/* Replaces recv() for gssapi connections.
*/
int TCPSessGSSRecv(tcps_sess_t *pSess, void *buf, size_t buf_len, ssize_t *piLenRcvd)
rsRetVal TCPSessGSSRecv(tcps_sess_t *pSess, void *buf, size_t buf_len, ssize_t *piLenRcvd)
{
DEFiRet;
gss_buffer_desc xmit_buf, msg_buf;
Expand Down

0 comments on commit 44b2642

Please sign in to comment.