Skip to content

svr-kex: use explicit void in svr_ensure_hostkey definition#450

Merged
mkj merged 1 commit into
mkj:masterfrom
FelipeMdeO:fix-svr-ensure-hostkey-prototype
Jun 21, 2026
Merged

svr-kex: use explicit void in svr_ensure_hostkey definition#450
mkj merged 1 commit into
mkj:masterfrom
FelipeMdeO:fix-svr-ensure-hostkey-prototype

Conversation

@FelipeMdeO

@FelipeMdeO FelipeMdeO commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Missed during #447 — svr_ensure_hostkey is guarded by #if DROPBEAR_DELAY_HOSTKEY so the warning only surfaces when that feature is enabled.

svr_ensure_hostkey() takes no arguments; use (void) to conform to
the C99/C11 standard, which treats func() as an unprototyped function
accepting any arguments.

This function is only compiled when DROPBEAR_DELAY_HOSTKEY is enabled,
so the warning was not caught by the previous fix (PR mkj#447).
@mkj mkj merged commit 038f4e3 into mkj:master Jun 21, 2026
18 of 19 checks passed
@mkj

mkj commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants