1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-15 19:48:56 +00:00

add unreachable "return" statement to avoid warning about missing return value

This commit is contained in:
Greg Alexander 2016-06-18 15:53:05 -04:00
parent dd7e234b7d
commit 1e81227bd2

View File

@ -55,6 +55,7 @@ buffer_check_alloc(Buffer *buffer, u_int len)
if (ret == SSH_ERR_NO_BUFFER_SPACE)
return 0;
fatal("%s: %s", __func__, ssh_err(ret));
return 0; /* unreachable */
}
int
@ -86,6 +87,7 @@ buffer_consume_ret(Buffer *buffer, u_int bytes)
if (ret == SSH_ERR_MESSAGE_INCOMPLETE)
return -1;
fatal("%s: %s", __func__, ssh_err(ret));
return 0; /* unreachable */
}
void
@ -105,6 +107,7 @@ buffer_consume_end_ret(Buffer *buffer, u_int bytes)
if (ret == SSH_ERR_MESSAGE_INCOMPLETE)
return -1;
fatal("%s: %s", __func__, ssh_err(ret));
return 0; /* unreachable */
}
void