diff --git a/libc/src/unistd/getopt.cpp b/libc/src/unistd/getopt.cpp index 6da47e73926cc..84b962d0cdda8 100644 --- a/libc/src/unistd/getopt.cpp +++ b/libc/src/unistd/getopt.cpp @@ -191,9 +191,9 @@ static GetoptContext ctx{&impl::optarg, &impl::optind, &impl::optopt, #ifndef LIBC_COPT_PUBLIC_PACKAGING // This is used exclusively in tests. -void set_getopt_state(char **optarg, int *optind, int *optopt, unsigned *optpos, - int *opterr, FILE *errstream) { - ctx = {optarg, optind, optopt, optpos, opterr, errstream}; +void set_getopt_state(char **optarg_in, int *optind_in, int *optopt_in, + unsigned *optpos_in, int *opterr_in, FILE *errstream) { + ctx = {optarg_in, optind_in, optopt_in, optpos_in, opterr_in, errstream}; } #endif