Skip to content

Commit

Permalink
tests: use const char instead of char in one case
Browse files Browse the repository at this point in the history
Found in test_extract_cpio_absolute_paths.c when compiling FreeBSD base
  • Loading branch information
mmatuska committed Oct 13, 2024
1 parent 971c043 commit 778849e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpio/test/test_extract_cpio_absolute_paths.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DEFINE_TEST(test_extract_cpio_absolute_paths)
int r;

// Create an absolute path for a test file inside testworkdir.
char *entry_suffix = "/cpio-noabs";
const char *entry_suffix = "/cpio-noabs";
size_t entry_suffix_length = strlen(entry_suffix);
size_t testworkdir_length = strlen(testworkdir);
size_t temp_absolute_file_name_length = testworkdir_length + entry_suffix_length;
Expand Down

0 comments on commit 778849e

Please sign in to comment.