Skip to content

Project cleanup#324

Merged
ThePedroo merged 11 commits into
PerformanC:mainfrom
Keyaku:project_cleanup
Apr 9, 2026
Merged

Project cleanup#324
ThePedroo merged 11 commits into
PerformanC:mainfrom
Keyaku:project_cleanup

Conversation

@Keyaku
Copy link
Copy Markdown
Contributor

@Keyaku Keyaku commented Apr 4, 2026

Changes

  • Sorted header inclusions according to best practices.
  • Reduced scopes of included headers.
  • Ensured strictness with string literals assignment to const char*.

Why

Cleaner code, better practices, less strcpy.

Checkmarks

  • The modified functions have been tested.
  • Used the same indentation as the rest of the project.
  • Updated documentation (changelog).

Additional observations

In the future, consider having a file's own local header added as the first inclusion to ensure the header is self-sufficient.
E.g.: misc.c's first line would be #include "misc.h".

Keyaku added 3 commits April 4, 2026 17:16
Changes:
- Reordered header inclusions.
- Changed global variable type from `char[]` to `char*` and replaced `strcpy()` of that variable to string literals assignment.
- Added `-Wwrite-string` warning to build configuration to mention string literal assignments to plain `char*`.
- Added `const` qualifier to `char*` assigned with string literals.
- Renamed a label.
Changes:
- Added local `.clang-format` file.
- Made headers self-sufficient.
- Avoided potential logging case in `remote_cso_loader_*` where it would log as `rezygisk-core` instead of `rezygisk-ptrace`.
- Cases which are misidentified by clangd as "unused" get an IWYU pragma comment.
- Reordered header inclusions using **Google style ordering**.
Comment thread loader/src/common/daemon.c Outdated
Comment thread loader/src/common/elf_util.c Outdated
Comment thread loader/src/common/misc.c Outdated
Comment thread loader/src/include/daemon.h
Comment thread loader/src/include/logging.h Outdated
Comment thread zygiskd/src/root_impl/kernelsu.c Outdated
Comment thread zygiskd/src/companion.c Outdated
Comment thread zygiskd/src/utils.h Outdated
Comment thread zygiskd/src/utils.h Outdated
Comment thread zygiskd/src/zygiskd.c Outdated
Keyaku added 4 commits April 7, 2026 11:52
Changes:
- Rearranged header inclusions according to PerformanC spec.
- Reduced `execv_const` to just a `NOSONAR` comment on each case.
Changes:
- Added headers where required.
- Replaced a `LOGE()` call to `PLOGE()`.
Also reworked `non_blocking_execv()` to avoid a `const` qualifier drop.
@ThePedroo ThePedroo self-requested a review April 8, 2026 16:19
Comment thread zygiskd/src/utils.c
@ThePedroo ThePedroo self-requested a review April 9, 2026 16:19
Copy link
Copy Markdown
Member

@ThePedroo ThePedroo left a comment

Choose a reason for hiding this comment

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

LGTM

@ThePedroo ThePedroo merged commit 172c51a into PerformanC:main Apr 9, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 2026
@Keyaku Keyaku deleted the project_cleanup branch April 9, 2026 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants