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:
parent
dd7e234b7d
commit
1e81227bd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user