summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:25:03 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:25:03 +0000
commit64713e0511f8044be088032104a783a77cb44802 (patch)
tree6f43b98d76a1d8a76db24a27760f85f9de29f99f /server.c
parent14fdb49c1906edf3cfe996965dbb3e46a4d486ad (diff)
Tweak a couple of variable names.
Diffstat (limited to 'server.c')
-rw-r--r--server.c8
1 files changed, 4 insertions, 4 deletions
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 <nicm@users.sourceforge.net>
@@ -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");
}