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

I have no idea how I missed these 2.
This commit is contained in:
Tom Hacohen 2013-03-21 14:15:10 +00:00
parent 026559f752
commit 71e95fa386
2 changed files with 2 additions and 3 deletions

View 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

View 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