From 64713e0511f8044be088032104a783a77cb44802 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 23 Oct 2007 10:25:03 +0000 Subject: [PATCH] Tweak a couple of variable names. --- client.c | 8 ++++---- server.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client.c b/client.c index 081d8452..0f631020 100644 --- a/client.c +++ b/client.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.16 2007-10-23 09:36:19 nicm Exp $ */ +/* $Id: client.c,v 1.17 2007-10-23 10:25:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -42,7 +42,7 @@ client_init(char *path, struct client_ctx *cctx, int start_server) struct stat sb; struct msg_identify_data data; struct winsize ws; - size_t sz; + size_t size; int mode; u_int retries; @@ -71,8 +71,8 @@ retry: memset(&sa, 0, sizeof sa); sa.sun_family = AF_UNIX; - sz = strlcpy(sa.sun_path, path, sizeof sa.sun_path); - if (sz >= sizeof sa.sun_path) { + size = strlcpy(sa.sun_path, path, sizeof sa.sun_path); + if (size >= sizeof sa.sun_path) { log_warnx("%s: %s", path, strerror(ENAMETOOLONG)); return (-1); } diff --git a/server.c b/server.c index f9720274..5b24858a 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.30 2007-10-23 09:36:19 nicm Exp $ */ +/* $Id: server.c,v 1.31 2007-10-23 10:25:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -58,7 +58,7 @@ int server_start(char *path) { struct sockaddr_un sa; - size_t sz; + size_t size; pid_t pid; mode_t mask; int n, fd, mode; @@ -83,8 +83,8 @@ server_start(char *path) memset(&sa, 0, sizeof sa); sa.sun_family = AF_UNIX; - sz = strlcpy(sa.sun_path, path, sizeof sa.sun_path); - if (sz >= sizeof sa.sun_path) { + size = strlcpy(sa.sun_path, path, sizeof sa.sun_path); + if (size >= sizeof sa.sun_path) { errno = ENAMETOOLONG; fatal("socket failed"); }