Evas cserve2: Remove useless var when calculating size of sun_path.
authorTom Hacohen <tom@stosb.com>
Thu, 21 Mar 2013 14:15:10 +0000 (14:15 +0000)
committerTom Hacohen <tom@stosb.com>
Thu, 21 Mar 2013 14:15:10 +0000 (14:15 +0000)
I have no idea how I missed these 2.

src/bin/evas/evas_cserve2_debug.c
src/bin/evas/evas_cserve2_main_loop_linux.c

index ce8e3e43f167360c8f5ef995bcc4fe09af2df606..e68e1138fc71495a2e72d4498e7de8c84231dab9 100644 (file)
@@ -18,9 +18,8 @@ static int socketfd = -1;
 static unsigned int _rid_count = 1;
 static int _evas_cserve2_debug_log_dom = -1;
 
-static struct sockaddr_un socksize;
 #ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX sizeof(socksize.sun_path)
+#define UNIX_PATH_MAX sizeof(((struct sockaddr_un *)NULL)->sun_path)
 #endif
 
 #ifdef ERR
index ca156f25972c8030e54a3b6cc32bc8eb4b90a1aa..52ed3a92d6b908478256cc3ea041ccef5991f9a1 100644 (file)
@@ -61,7 +61,7 @@ static Timeout_Cb timeout_func = NULL;
 static Main_Loop_Child_Dead_Cb reap_children_func = NULL;
 
 #ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX sizeof(socket_local.sun_path)
+#define UNIX_PATH_MAX sizeof(((struct sockaddr_un *)NULL)->sun_path)
 #endif
 
 static void