diff --git a/examples/C/virtual_file_system/vfs.h b/examples/C/virtual_file_system/vfs.h index 3c50273f..d4cec2cc 100644 --- a/examples/C/virtual_file_system/vfs.h +++ b/examples/C/virtual_file_system/vfs.h @@ -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; diff --git a/examples/C/virtual_file_system/vfs.py b/examples/C/virtual_file_system/vfs.py index 043379ad..234bbd1f 100644 --- a/examples/C/virtual_file_system/vfs.py +++ b/examples/C/virtual_file_system/vfs.py @@ -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')