Commit f802bc52 authored by 's avatar
Browse files

CvR:
+ Fixed misleading indent.
+ Declared some variables static.



git-svn-id: file:///home/svn/mapi/trunk@429 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 4906a33e
......@@ -25,11 +25,10 @@
// this file contains all the client-side IPC related functions
int sock;
int mapidaddr_len;
int fromaddr_len;
struct sockaddr_un mapidaddr;
struct sockaddr_un fromaddr;
static int sock;
static int mapidaddr_len;
static struct sockaddr_un mapidaddr;
static struct sockaddr_un fromaddr;
static char* mapidsocket;
void mapiipc_write(struct mapiipcbuf *qbuf)
......@@ -71,7 +70,7 @@ void mapiipc_client_init()
mapidaddr_len = sizeof mapidaddr.sun_family + strlen(mapidaddr.sun_path);
if (connect(sock, (struct sockaddr *)&mapidaddr, mapidaddr_len) < 0)
{
{
// ERROR_CMD(printf("connect: %s [%s:%d]\n",strerror(errno),__FILE__,__LINE__));
free(mapidsocket);
mapidsocket=strdup(MAPIDSOCKGLOBAL);
......@@ -81,8 +80,8 @@ void mapiipc_client_init()
ERROR_CMD(printf("connect: %s [%s:%d]\n",strerror(errno),__FILE__,__LINE__));
else
return;
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
free(mapidsocket);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment