mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
zfs tests: Silence clang warning
"assigning to 'pattern_t *' from 'const pattern_t *' discards qualifiers" Reviewed by: asomers Reported by: clang MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42791 (cherry picked from commit 5b36076d28ad1920b178da93d667dcfeae426494)
This commit is contained in:
parent
3b46583420
commit
8e41bbf245
1 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
int thread_num;
|
||||
pattern_t* pat;
|
||||
const pattern_t* pat;
|
||||
} thread_data_t;
|
||||
|
||||
|
||||
|
|
@ -354,7 +354,7 @@ verify_file(int fd, const pattern_t* p_pat){
|
|||
|
||||
/* Writes a special marker to every byte within the chunk */
|
||||
static void
|
||||
write_chunk(pattern_t* p_pat, int chunk_idx, int thread_num)
|
||||
write_chunk(const pattern_t* p_pat, int chunk_idx, int thread_num)
|
||||
{
|
||||
uint32_t chunk_start, chunk_end;
|
||||
get_chunk_range(p_pat, chunk_idx, &chunk_start, &chunk_end);
|
||||
|
|
|
|||
Loading…
Reference in a new issue