tasn pushed a commit to branch master.

commit ecc0972468cb5f9ce03041720f373be358a49909
Author: Tom Hacohen <[email protected]>
Date:   Thu Mar 21 13:15:47 2013 +0000

    Evas cserve2: Remove useless var when calculating size of sun_path.
---
 src/bin/evas/evas_cserve2_client.c | 3 +--
 src/bin/evas/evas_cserve2_usage.c  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/bin/evas/evas_cserve2_client.c 
b/src/bin/evas/evas_cserve2_client.c
index 91999f0..a36940b 100644
--- a/src/bin/evas/evas_cserve2_client.c
+++ b/src/bin/evas/evas_cserve2_client.c
@@ -14,8 +14,7 @@
 static unsigned int _rid_count = 0;
 
 #ifndef UNIX_PATH_MAX
-static struct sockaddr_un socket_local;
-#define UNIX_PATH_MAX sizeof(socket_local.sun_path)
+#define UNIX_PATH_MAX sizeof(((struct sockaddr_un *)NULL)->sun_path)
 #endif
 
 static void
diff --git a/src/bin/evas/evas_cserve2_usage.c 
b/src/bin/evas/evas_cserve2_usage.c
index 294f5c3..bcf0cdd 100644
--- a/src/bin/evas/evas_cserve2_usage.c
+++ b/src/bin/evas/evas_cserve2_usage.c
@@ -19,8 +19,7 @@ static unsigned int _rid_count = 1;
 static int _evas_cserve2_usage_log_dom = -1;
 
 #ifndef UNIX_PATH_MAX
-static struct sockaddr_un socksize;
-#define UNIX_PATH_MAX sizeof(socksize.sun_path)
+#define UNIX_PATH_MAX sizeof(((struct sockaddr_un *)NULL)->sun_path)
 #endif
 
 #ifdef ERR

-- 

------------------------------------------------------------------------------
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

Reply via email to