Evas cserve2: Remove useless var when calculating size of sun_path.

This commit is contained in:
Tom Hacohen 2013-03-21 13:15:47 +00:00
parent 7a01acd60d
commit ecc0972468
2 changed files with 2 additions and 4 deletions

View File

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

View File

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