aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/unix.7')
-rw-r--r--man7/unix.712
1 files changed, 6 insertions, 6 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index e069348515..94d9210536 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -817,7 +817,7 @@ main(int argc, char *argv[])
int
main(int argc, char *argv[])
{
- struct sockaddr_un name;
+ struct sockaddr_un addr;
int i;
int ret;
int data_socket;
@@ -837,14 +837,14 @@ main(int argc, char *argv[])
* the structure.
*/
- memset(&name, 0, sizeof(struct sockaddr_un));
+ memset(&addr, 0, sizeof(struct sockaddr_un));
- /* Connect socket to socket name. */
+ /* Connect socket to socket address */
- name.sun_family = AF_UNIX;
- strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) \- 1);
+ addr.sun_family = AF_UNIX;
+ strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) \- 1);
- ret = connect (data_socket, (const struct sockaddr *) &name,
+ ret = connect (data_socket, (const struct sockaddr *) &addr,
sizeof(struct sockaddr_un));
if (ret == \-1) {
fprintf(stderr, "The server is down.\\n");