X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ls-files.c;h=956be09350f6c17a479e96ab8e42575e1ce60762;hb=4fa2197e614950279527b14825d1e9572454a48c;hp=e3f43ecca1a39231f2855895433e66325abd7c06;hpb=348c4c66dacb1810a9bcd592e72f98a465233488;p=git.git diff --git a/ls-files.c b/ls-files.c index e3f43ecc..956be093 100644 --- a/ls-files.c +++ b/ls-files.c @@ -31,7 +31,7 @@ static const char *tag_other = ""; static const char *tag_killed = ""; static const char *tag_modified = ""; -static char *exclude_per_dir = NULL; +static const char *exclude_per_dir = NULL; /* We maintain three exclude pattern lists: * EXC_CMDL lists patterns explicitly given on the command line. @@ -532,7 +532,7 @@ static const char ls_files_usage[] = "[ --ignored ] [--exclude=] [--exclude-from=] " "[ --exclude-per-directory= ]"; -int main(int argc, char **argv) +int main(int argc, const char **argv) { int i; int exc_given = 0; @@ -542,7 +542,7 @@ int main(int argc, char **argv) prefix_offset = strlen(prefix); for (i = 1; i < argc; i++) { - char *arg = argv[i]; + const char *arg = argv[i]; if (!strcmp(arg, "-z")) { line_terminator = 0;