diff options
author | Tom Hacohen <tom@stosb.com> | 2013-03-21 13:15:47 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2013-03-21 13:15:47 +0000 |
commit | ecc0972468cb5f9ce03041720f373be358a49909 (patch) | |
tree | a34c8506f110247dfb5a27f4d8a5cc6b6038d88e /src/bin | |
parent | 7a01acd60d3e73c94640f0c727beb06b1614eca0 (diff) | |
download | efl-ecc0972468cb5f9ce03041720f373be358a49909.tar.gz |
Evas cserve2: Remove useless var when calculating size of sun_path.
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/evas/evas_cserve2_client.c | 3 | ||||
-rw-r--r-- | 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 91999f0ef0..a36940ba8a 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 294f5c3747..bcf0cdd7d0 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 |