diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-23 09:20:29 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-23 09:20:29 -0700 |
| commit | 651847f5bcf468e06f4153a438892e517e005dde (patch) | |
| tree | 6f9545b1149c1ec895ea906b733e381bf948c6dd /bloom.c | |
| parent | 6e8d538aab8fe4dd07ba9fb87b5c7edcfa5706ad (diff) | |
| parent | 02cbae61df7b3493e7f76f8385fc9257de60755f (diff) | |
| download | git-651847f5bcf468e06f4153a438892e517e005dde.tar.xz | |
Merge branch 'cf/constness-fixes'
Small code clean-up around the constness area.
* cf/constness-fixes:
dir: avoid -Wdiscarded-qualifiers in remove_path()
bloom: remove a misleading const qualifier
Diffstat (limited to 'bloom.c')
| -rw-r--r-- | bloom.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -501,7 +501,7 @@ struct bloom_filter *get_or_compute_bloom_filter(struct repository *r, struct hashmap_iter iter; for (i = 0; i < diff_queued_diff.nr; i++) { - const char *path = diff_queued_diff.queue[i]->two->path; + char *path = diff_queued_diff.queue[i]->two->path; /* * Add each leading directory of the changed file, i.e. for @@ -523,7 +523,7 @@ struct bloom_filter *get_or_compute_bloom_filter(struct repository *r, free(e); if (!last_slash) - last_slash = (char*)path; + last_slash = path; *last_slash = '\0'; } while (*path); |
