Andrew Savchenko

Make socket.[ch] independent of common.h

... ... @@ -17,10 +17,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "common.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <sys/un.h> // for "struct sockaddr_un"
#include <unistd.h>
#include "configuration.h"
#include "error.h"
#include "malloc.h"
#include "socket.h"
... ...
... ... @@ -20,8 +20,9 @@
#ifndef __CLSYNC_SOCKET_H
#define __CLSYNC_SOCKET_H
#include <stdint.h>
#include <linux/limits.h>
#include <pthread.h>
#include <stdint.h>
#define SOCKET_DEFAULT_PROT 0
#define SOCKET_DEFAULT_SUBPROT SUBPROT0_TEXT
... ... @@ -126,7 +127,6 @@ struct sockcmd_dat_version {
};
typedef struct sockcmd_dat_version sockcmd_dat_version_t;
#ifdef __CLSYNC_CTX_H
struct sockcmd_dat_info {
char config_block[1<<8];
char label[1<<8];
... ... @@ -134,7 +134,6 @@ struct sockcmd_dat_info {
char flags_set[OPTION_FLAGS];
};
typedef struct sockcmd_dat_info sockcmd_dat_info_t;
#endif
struct sockcmd_dat_dump {
char dir_path[PATH_MAX];
... ...