Skip to content

tidy-up: miscellaneous - #2042

Closed
vszakats wants to merge 34 commits into
libssh2:masterfrom
vszakats:tidy2606d
Closed

vszakats wants to merge 34 commits into
libssh2:masterfrom
vszakats:tidy2606d

Conversation

@vszakats

@vszakats vszakats commented Jun 11, 2026 •

Copy link
Copy Markdown
Member
  • man pages: grammar
  • examples: add missing parentheses to macro values
  • examples: replace write() with _write() on Windows.
    (to avoid warnings.)
  • examples, tests: drop redundant NULL assigments.
  • examples: fix to cleanup on error in ssh2_echo, ssh2_exec.
  • libssh2.rpgle.in: make hex notation consistent in comment.
  • chacha, session.h: avoid comparison with literal NULL.
  • prefer 'unrecognized' vs 'unknown' in error messages.
  • mbedtls: sync a code pattern with others in the code in
    ssh2_rsa_new().
  • openssl: declutter and update comment for wolfSSL HMAC_Update()
    exception. Also drop FIXME as the upstream incompatibility seems
    intentional.
  • pem, userauth, wincng: fix, clarify error messages.
  • wincng: add explanation for NOLINT exception, reword another
    comment.
    (suggested by Copilot)
  • misc: drop redundant parentheses.
  • test_read: fix a type mismatch.
  • openssl: use indexed syntax for readability.
  • vms/man2help: fix tool name is help text.
  • formatting: reflow, newlines, spaces, comment typos.

Some of these reported by GitHub Code Quality / Copilot.


https://github.com/libssh2/libssh2/pull/2042/files?w=1

@vszakats vszakats closed this in ca43b30 Jun 11, 2026
@vszakats
vszakats deleted the tidy2606d branch June 11, 2026 12:50
vszakats added a commit that referenced this pull request Jul 16, 2026
It wasn't needed anymore for `write()` in contratry to the comment,
because mapping it earlier to `_write()` in examples. But, it was needed
again for `strdup()` due to a regression. Fix it by mapping it again to
`_strdup()` in examples.

Also: document `vsnprintf()` used in tests.

Follow-up to ca43b30 #2042
Follow-up to e8e6bc2 #1688

Closes #2332
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.

1 participant