Skip to content

Small refactoring - #3

Open
safocl wants to merge 1 commit into
dariost:masterfrom
safocl:refactor
Open

Small refactoring#3
safocl wants to merge 1 commit into
dariost:masterfrom
safocl:refactor

Conversation

@safocl

@safocl safocl commented Jul 6, 2026

Copy link
Copy Markdown

Removed unnecessary cast and class-member-access.

Although the conversion from a pointer to the type of the first member of a structure to a pointer to the type of this structure is valid and guaranteed to work as expected, it can be omitted in this case, since a pointer to the structure itself is needed.

Removed unnecessary cast and class-member-access

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request simplifies the call to inet_aton in soks.c by passing &server_address.sin_addr directly instead of casting &server_address.sin_addr.s_addr to struct in_addr*. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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