summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xs_unix_socket.h16
-rw-r--r--xs_version.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/xs_unix_socket.h b/xs_unix_socket.h
index 5b64282..3eb2307 100644
--- a/xs_unix_socket.h
+++ b/xs_unix_socket.h
@@ -20,15 +20,15 @@ int xs_unix_socket_server(const char *path, const char *grp)
int rs = -1;
if ((rs = socket(AF_UNIX, SOCK_STREAM, 0)) != -1) {
- struct sockaddr_un sun = {0};
+ struct sockaddr_un su = {0};
mode_t mode = 0666;
- sun.sun_family = AF_UNIX;
- strncpy(sun.sun_path, path, sizeof(sun.sun_path));
+ su.sun_family = AF_UNIX;
+ strncpy(su.sun_path, path, sizeof(su.sun_path));
unlink(path);
- if (bind(rs, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
+ if (bind(rs, (struct sockaddr *)&su, sizeof(su)) == -1) {
close(rs);
return -1;
}
@@ -58,12 +58,12 @@ int xs_unix_socket_connect(const char *path)
int d = -1;
if ((d = socket(AF_UNIX, SOCK_STREAM, 0)) != -1) {
- struct sockaddr_un sun = {0};
+ struct sockaddr_un su = {0};
- sun.sun_family = AF_UNIX;
- strncpy(sun.sun_path, path, sizeof(sun.sun_path));
+ su.sun_family = AF_UNIX;
+ strncpy(su.sun_path, path, sizeof(su.sun_path));
- if (connect(d, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
+ if (connect(d, (struct sockaddr *)&su, sizeof(su)) == -1) {
close(d);
d = -1;
}
diff --git a/xs_version.h b/xs_version.h
index 716dba6..4318c7e 100644
--- a/xs_version.h
+++ b/xs_version.h
@@ -1 +1 @@
-/* 7c7c38b6d14c07cb85698223bcff4d3193245437 2024-08-11T21:48:09+02:00 */
+/* c6eca9593f9b3d6791cba600e5950f682fdb36cf 2024-08-12T16:08:37+02:00 */