tasn pushed a commit to branch master.
commit 71e95fa386fcfab9ae7c989f48e29a66e12e621b
Author: Tom Hacohen <[email protected]>
Date: Thu Mar 21 14:15:10 2013 +0000
Evas cserve2: Remove useless var when calculating size of sun_path.
I have no idea how I missed these 2.
---
src/bin/evas/evas_cserve2_debug.c | 3 +--
src/bin/evas/evas_cserve2_main_loop_linux.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/bin/evas/evas_cserve2_debug.c
b/src/bin/evas/evas_cserve2_debug.c
index ce8e3e4..e68e113 100644
--- a/src/bin/evas/evas_cserve2_debug.c
+++ b/src/bin/evas/evas_cserve2_debug.c
@@ -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
diff --git a/src/bin/evas/evas_cserve2_main_loop_linux.c
b/src/bin/evas/evas_cserve2_main_loop_linux.c
index ca156f2..52ed3a9 100644
--- a/src/bin/evas/evas_cserve2_main_loop_linux.c
+++ b/src/bin/evas/evas_cserve2_main_loop_linux.c
@@ -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
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar