These do not need initial values. Let them live in the bss.
authorEric Andersen <andersen@codepoet.org>
Mon, 30 Apr 2001 18:07:24 +0000 (18:07 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 30 Apr 2001 18:07:24 +0000 (18:07 -0000)
 -Erik

chgrp.c
chown.c
coreutils/chgrp.c
coreutils/chown.c

diff --git a/chgrp.c b/chgrp.c
index ec1a0370c856a27d988fd0a3ef5c51416483888c..fbc1036a86c9ef582887d7ddf41769f3b7f7718a 100644 (file)
--- a/chgrp.c
+++ b/chgrp.c
@@ -34,7 +34,7 @@
 #endif
 
 
-static long gid = -1;
+static long gid;
 
 static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
 {
diff --git a/chown.c b/chown.c
index 9ff287251cc56b7207c29c901e68b889a240bb51..0114033789078b7779ad4e299c5b1aaf061d582f 100644 (file)
--- a/chown.c
+++ b/chown.c
@@ -33,8 +33,8 @@
 #define lchown chown
 #endif
 
-static long uid = -1;
-static long gid = -1;
+static long uid;
+static long gid;
 
 static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
 {
index ec1a0370c856a27d988fd0a3ef5c51416483888c..fbc1036a86c9ef582887d7ddf41769f3b7f7718a 100644 (file)
@@ -34,7 +34,7 @@
 #endif
 
 
-static long gid = -1;
+static long gid;
 
 static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
 {
index 9ff287251cc56b7207c29c901e68b889a240bb51..0114033789078b7779ad4e299c5b1aaf061d582f 100644 (file)
@@ -33,8 +33,8 @@
 #define lchown chown
 #endif
 
-static long uid = -1;
-static long gid = -1;
+static long uid;
+static long gid;
 
 static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
 {