dc4fb33be2e100a3939b74902a5f843f55f7c723
Fixed build errors in tinydfs_server and example_client targets caused by missing timeout parameter and simulation client references. **Changes:** **main_server.c:** - Added int timeout variable declaration in metadata_server_main() - Added int timeout variable declaration in chunk_server_main() - Pass &timeout to metadata_server_init() call - Pass &timeout to metadata_server_step() call - Pass &timeout to chunk_server_init() call - Pass &timeout to chunk_server_step() call **system.c:** - Guarded simulation_client.h include with #ifdef BUILD_TEST - Guarded PROCESS_TYPE_CLIENT enum value with #ifdef BUILD_TEST - Guarded SimulationClient member in Process union with #ifdef BUILD_TEST - Guarded is_client() function with #ifdef BUILD_TEST - Guarded client detection logic in spawn_simulated_process() - Guarded PROCESS_TYPE_CLIENT cases in all switch statements: - spawn_simulated_process() init switch - free_process() cleanup switch - update_simulation() step switch **Result:** - tinydfs_server.out now compiles successfully - example_client.out now compiles successfully - tinydfs_test.out continues to work correctly - Simulation client code only included when BUILD_TEST is defined - All three build targets pass compilation with only pre-existing warnings The simulation_client code is now properly isolated to test builds only, preventing linker errors when building the real server and example client.
Languages
C
98.4%
Shell
1%
Zig
0.4%
Batchfile
0.2%