summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/common-utils.h7
-rw-r--r--libglusterfs/src/run.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index e092288bf..e42945bf0 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -147,6 +147,13 @@ extern char *gf_mgmt_list[GF_MGMT_MAXVALUE];
} while (0);
#endif
+union gf_sock_union {
+ struct sockaddr_storage storage;
+ struct sockaddr_in6 sin6;
+ struct sockaddr_in sin;
+ struct sockaddr sa;
+};
+
#define GF_HIDDEN_PATH ".glusterfs"
static inline void
diff --git a/libglusterfs/src/run.c b/libglusterfs/src/run.c
index 052a2fdb5..41601209c 100644
--- a/libglusterfs/src/run.c
+++ b/libglusterfs/src/run.c
@@ -312,7 +312,7 @@ runner_start (runner_t *runner)
execvp (runner->argv[0], runner->argv);
}
- write (xpi[1], &errno, sizeof (errno));
+ ret = write (xpi[1], &errno, sizeof (errno));
_exit (1);
}