Skip to content

Commit

Permalink
Fix GCC Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga committed Jul 10, 2024
1 parent 633a96c commit 3f683ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/C/virtual_file_system/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bool virtual_file_system(const char* path, const unsigned char** file, int* leng
return false;
}

void* vfs(const char* path, int* length) {
const void* vfs(const char* path, int* length) {
const unsigned char* file_data;
int file_length;

Expand Down
2 changes: 1 addition & 1 deletion examples/C/virtual_file_system/vfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def generate_vfs_header(directory, output_header):
header.write(' return false;\n')
header.write('}\n\n')

header.write('void* vfs(const char* path, int* length) {\n')
header.write('const void* vfs(const char* path, int* length) {\n')
header.write(' const unsigned char* file_data;\n')
header.write(' int file_length;\n\n')

Expand Down

0 comments on commit 3f683ea

Please sign in to comment.