fix: const-correct receive_incremental_check for cppcheck
CI / lint (push) Failing after 6s
CI / build-and-test (push) Has been skipped
CI / sanitizers (address) (push) Has been skipped
CI / sanitizers (thread) (push) Has been skipped
CI / lint (pull_request) Failing after 5s
CI / build-and-test (pull_request) Has been skipped
CI / sanitizers (address) (pull_request) Has been skipped
CI / sanitizers (thread) (pull_request) Has been skipped
CI / lint (push) Failing after 6s
CI / build-and-test (push) Has been skipped
CI / sanitizers (address) (push) Has been skipped
CI / sanitizers (thread) (push) Has been skipped
CI / lint (pull_request) Failing after 5s
CI / build-and-test (pull_request) Has been skipped
CI / sanitizers (address) (pull_request) Has been skipped
CI / sanitizers (thread) (pull_request) Has been skipped
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ bool file_save_to_disk(const char* root_directory, File* file) {
|
|||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
File* receive_incremental_check(int fd, Config* config, bool* skipped) {
|
File* receive_incremental_check(int fd, const Config* config, bool* skipped) {
|
||||||
*skipped = false;
|
*skipped = false;
|
||||||
char* check_path = receive_str(fd);
|
char* check_path = receive_str(fd);
|
||||||
if (check_path == NULL) {
|
if (check_path == NULL) {
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ FileMetadata* file_metadata_create(const struct stat* stats);
|
|||||||
void file_metadata_destroy(void* metadata);
|
void file_metadata_destroy(void* metadata);
|
||||||
bool to_disk(const char* path, const void* data, unsigned long long data_size);
|
bool to_disk(const char* path, const void* data, unsigned long long data_size);
|
||||||
bool file_save_to_disk(const char* root_directory, File* file);
|
bool file_save_to_disk(const char* root_directory, File* file);
|
||||||
File* receive_incremental_check(int fd, Config* config, bool* skipped);
|
File* receive_incremental_check(int fd, const Config* config, bool* skipped);
|
||||||
int receive_manifest(int fd, const Config* config, int* next_status);
|
int receive_manifest(int fd, const Config* config, int* next_status);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user