mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
Uses abort() instead of raising a SIGABRT signal [-Werror]
error: ‘noreturn’ function does return [-Werror]
abort() is a noreturn function while raise() is not.
And because crypt_argchk() is flagged as __attribute__(noreturn), abort()
appears to be a better condidate.
This compilation warning has probably been introduced by commit
1809f741cb
.
This commit is contained in:
parent
897da4ee36
commit
d9d97969a3
@ -21,7 +21,7 @@ void crypt_argchk(char *v, char *s, int d)
|
|||||||
{
|
{
|
||||||
fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n",
|
fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n",
|
||||||
v, d, s);
|
v, d, s);
|
||||||
(void)raise(SIGABRT);
|
abort();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user