Repository navigation
Conversation
There was a problem hiding this comment.
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++-keywordto usehave_windows_hinstead of a native-Windows check. - Rename several
FILE *locals tofpfor 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.
FILE * variable names and a configure warning option guard
FILE * variable names and a configure warning option guardFILE * variable names, configure warning option guard, printf mask
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
configure: fix wrong guard for
-Wno-c++-keyword.Follow-up to 04ecdb2 build: update picky warning options, fix fallouts #1972
sync most outlier
FILE *variables names with rest of code.agent: replace cast with accurate printf mask when forming
PageantRequestmap name.Follow-up to 7b351ee