diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-12 23:29:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-12 23:29:10 -0800 |
| commit | b6dd6703adb311a5635bb4914dbaa8dbb846569a (patch) | |
| tree | 109833f90996055408b75c144d14b8e0c6c7b8a8 /src | |
| parent | 7b4a0a996aa6ed3e8fbbd9fd0e28811725707605 (diff) | |
| download | nng-b6dd6703adb311a5635bb4914dbaa8dbb846569a.tar.gz nng-b6dd6703adb311a5635bb4914dbaa8dbb846569a.tar.bz2 nng-b6dd6703adb311a5635bb4914dbaa8dbb846569a.zip | |
fixes #1131 (openindiana) compile error
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/posix/posix_ipclisten.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/posix/posix_ipclisten.c b/src/platform/posix/posix_ipclisten.c index 4104be99..43febcfb 100644 --- a/src/platform/posix/posix_ipclisten.c +++ b/src/platform/posix/posix_ipclisten.c @@ -185,13 +185,13 @@ static int ipc_remove_stale(const char *path) { int fd; - struct sockaddr_un sun; + struct sockaddr_un sa; size_t sz; - sun.sun_family = AF_UNIX; - sz = sizeof(sun.sun_path); + sa.sun_family = AF_UNIX; + sz = sizeof(sa.sun_path); - if (nni_strlcpy(sun.sun_path, path, sz) >= sz) { + if (nni_strlcpy(sa.sun_path, path, sz) >= sz) { return (NNG_EADDRINVAL); } @@ -205,7 +205,7 @@ ipc_remove_stale(const char *path) // then the cleanup will fail. As this is supposed to be an // exceptional case, don't worry. (void) fcntl(fd, F_SETFL, O_NONBLOCK); - if (connect(fd, (void *) &sun, sizeof(sun)) < 0) { + if (connect(fd, (void *) &sa, sizeof(sa)) < 0) { if (errno == ECONNREFUSED) { (void) unlink(path); } |
