Skip to content

tidy-up: FILE * variable names, configure warning option guard, printf mask - #2317

Closed
vszakats wants to merge 5 commits into
libssh2:masterfrom
vszakats:tidy2
Closed

vszakats wants to merge 5 commits into
libssh2:masterfrom
vszakats:tidy2

Conversation

@vszakats

@vszakats vszakats commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a small cleanup pass across the build/autoconf logic and a few C sources, primarily to align naming and warning-guard behavior with the rest of the codebase and recent warning-option changes.

Changes:

  • Fix the configure-time guard for adding -Wno-c++-keyword to use have_windows_h instead of a native-Windows check.
  • Rename several FILE * locals to fp for consistency.
  • Adjust the Pageant map name thread-id type usage in the Windows agent code.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/openssh_fixture.c Renames a FILE * local used when probing cgroups to fp.
src/wincng.c Renames a private-key file handle local to fp and updates uses/cleanup.
src/knownhost.c Renames knownhosts read/write FILE * locals to fp and updates uses.
src/agent.c Changes the cast used for GetCurrentThreadId() when building the Pageant mapping name.
acinclude.m4 Updates the Windows-specific guard for -Wno-c++-keyword to check have_windows_h.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/agent.c Resolved
@vszakats vszakats changed the title tidy-up: misc nits tidy-up: FILE * variable names and a configure warning option guard Jul 15, 2026
@vszakats vszakats changed the title tidy-up: FILE * variable names and a configure warning option guard tidy-up: FILE * variable names, configure warning option guard, printf mask Jul 15, 2026
@vszakats
vszakats requested a review from Copilot July 15, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in 952fb88 Jul 15, 2026
@vszakats
vszakats deleted the tidy2 branch July 15, 2026 11:35
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