summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2003-07-05 15:18:44 +0000
committerdds <dds@FreeBSD.org>2003-07-05 15:18:44 +0000
commit34719e1dbbd13069c2034382dc5129edf7657a4b (patch)
treeb3c2aa55b49d1fcca627aec69e1e5a16b264b51d /bin/sh/expand.c
parent9179c67e977015ed4bfe4a52ade43ac574300c93 (diff)
downloadFreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.zip
FreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.tar.gz
Changes following CScout analysis:
- Removed dead declarations - Made objects that should have been declared as static, static. The changes use STATIC instead of static, following the existing convention in the rest of the code. Approved by: schweikh (mentor) MFC after: 2 weeks
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r--bin/sh/expand.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index 214f53a..4ff7427 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -90,11 +90,11 @@ struct ifsregion {
};
-char *expdest; /* output of current string */
-struct nodelist *argbackq; /* list of back quote expressions */
-struct ifsregion ifsfirst; /* first struct in list of ifs regions */
-struct ifsregion *ifslastp; /* last struct in list */
-struct arglist exparg; /* holds expanded arg list */
+STATIC char *expdest; /* output of current string */
+STATIC struct nodelist *argbackq; /* list of back quote expressions */
+STATIC struct ifsregion ifsfirst; /* first struct in list of ifs regions */
+STATIC struct ifsregion *ifslastp; /* last struct in list */
+STATIC struct arglist exparg; /* holds expanded arg list */
STATIC void argstr(char *, int);
STATIC char *exptilde(char *, int);
@@ -1055,7 +1055,7 @@ ifsbreakup(char *string, struct arglist *arglist)
* should be escapes. The results are stored in the list exparg.
*/
-char *expdir;
+STATIC char *expdir;
STATIC void
OpenPOWER on IntegriCloud