int c;
size_t v;
- static const struct option long_options[] = {
+ static const struct option options[] = {
{"show-stats", no_argument, 0, 's'},
{"zero-stats", no_argument, 0, 'z'},
{"cleanup", no_argument, 0, 'c'},
{"version", no_argument, 0, 'V'},
{0, 0, 0, 0}
};
- int option_index = 0;
- while ((c = getopt_long(argc, argv, "hszcCF:M:V", long_options, &option_index)) != -1) {
+ while ((c = getopt_long(argc, argv, "hszcCF:M:V", options, NULL)) != -1) {
switch (c) {
case 'V':
fprintf(stdout, VERSION_TEXT, CCACHE_VERSION);