Skip to content

Add const to read-only pointer parameters in host-side code #29

@felixx-sp

Description

@felixx-sp

Several functions in src/bruteforce.c and src/payload_io.c accept pointer parameters they never write through, but the parameters are not declared const. This prevents the compiler from applying read-only optimizations and makes the API less self-documenting.

Task: audit both files and add const to pointer parameters that are only read (e.g. const char *path, const PayloadSet *ps). Update the corresponding declarations in include/bruteforce.h and include/payload_io.h to match.

Good first issue — complementary to #16 (__restrict__ on device helpers). No CUDA knowledge required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions