summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-08-01 19:11:53 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-01 20:28:58 (GMT)
commit4d8fa916c9ff89613234f41b9222a2b679bce5c3 (patch)
tree1cf1d200c1c5efeb14d2a7317a933f71e15b1c7c /daemon.c
parent9b75e9fa7b2c9bae2d386a380e7f80a7b6c4462e (diff)
downloadgit-4d8fa916c9ff89613234f41b9222a2b679bce5c3.zip
git-4d8fa916c9ff89613234f41b9222a2b679bce5c3.tar.gz
git-4d8fa916c9ff89613234f41b9222a2b679bce5c3.tar.bz2
[PATCH] Fix sparse warnings
A few sparse warnings have crept in again since I checked last time: undeclared variables with global scope. Fix them by marking the private variables properly "static". Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.c b/daemon.c
index eeff9e7..b7d6091 100644
--- a/daemon.c
+++ b/daemon.c
@@ -71,13 +71,13 @@ static int max_connections = 25;
/* These are updated by the signal handler */
static volatile unsigned int children_reaped = 0;
-pid_t dead_child[MAX_CHILDREN];
+static pid_t dead_child[MAX_CHILDREN];
/* These are updated by the main loop */
static unsigned int children_spawned = 0;
static unsigned int children_deleted = 0;
-struct child {
+static struct child {
pid_t pid;
socklen_t addrlen;
struct sockaddr_storage address;