diff seobeo/os/s_macos_edge.c @ 17:d97ec3ded2ae

[Seobeo] Few changes... - Fixed seobeo edge for macos - Updated so that socket creation can be used for both client and server - Started on a cutelient library for making connection to the server.
author June Park <parkjune1995@gmail.com>
date Sat, 04 Oct 2025 07:53:12 -0700
parents fb2cff495a60
children fa2b8af609d9
line wrap: on
line diff
--- a/seobeo/os/s_macos_edge.c	Fri Oct 03 09:55:51 2025 -0700
+++ b/seobeo/os/s_macos_edge.c	Sat Oct 04 07:53:12 2025 -0700
@@ -60,10 +60,9 @@
   pthread_t  threads[thread_count];
   for (int i = 0; i < thread_count; i++)
   {
-    WorkerArgs *args = malloc(sizeof(WorkerArgs));
-    *args = (WorkerArgs){ p_server_handle, p_html_cache, kq };
+    WorkerArgs args = { p_server_handle, p_html_cache, kq };
     pthread_create(&threads[i], NULL,
-                   Seobeo_Web_Edge_Worker, args);
+                   Seobeo_Web_Edge_Worker, &args);
   }
   for (int i = 0; i < thread_count; i++)
   {