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.
Several functions in
src/bruteforce.candsrc/payload_io.caccept pointer parameters they never write through, but the parameters are not declaredconst. This prevents the compiler from applying read-only optimizations and makes the API less self-documenting.Task: audit both files and add
constto pointer parameters that are only read (e.g.const char *path,const PayloadSet *ps). Update the corresponding declarations ininclude/bruteforce.handinclude/payload_io.hto match.Good first issue — complementary to #16 (
__restrict__on device helpers). No CUDA knowledge required.