summaryrefslogtreecommitdiffstats
path: root/bin/sh/alias.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2010-10-13 04:01:01 +0000
committerobrien <obrien@FreeBSD.org>2010-10-13 04:01:01 +0000
commitf31ad1c86b4755ef67582377762ce84fa733658b (patch)
tree9c3469b15542c1ab6cc58c5974f1da71c59da708 /bin/sh/alias.c
parent8c097aa69ed7151df0358afc55a9bec6e7ae8b1a (diff)
downloadFreeBSD-src-f31ad1c86b4755ef67582377762ce84fa733658b.zip
FreeBSD-src-f31ad1c86b4755ef67582377762ce84fa733658b.tar.gz
Consistently use "STATIC" for all functions in order to be able to set
breakpoints with in a debugger. And use naked "static" for variables. Noticed by: bde
Diffstat (limited to 'bin/sh/alias.c')
-rw-r--r--bin/sh/alias.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/alias.c b/bin/sh/alias.c
index 00b7fa7..5605b70 100644
--- a/bin/sh/alias.c
+++ b/bin/sh/alias.c
@@ -49,8 +49,8 @@ __FBSDID("$FreeBSD$");
#define ATABSIZE 39
-STATIC struct alias *atab[ATABSIZE];
-STATIC int aliases;
+static struct alias *atab[ATABSIZE];
+static int aliases;
STATIC void setalias(const char *, const char *);
STATIC int unalias(const char *);
@@ -191,7 +191,7 @@ lookupalias(const char *name, int check)
return (NULL);
}
-static int
+STATIC int
comparealiases(const void *p1, const void *p2)
{
const struct alias *const *a1 = p1;
@@ -200,7 +200,7 @@ comparealiases(const void *p1, const void *p2)
return strcmp((*a1)->name, (*a2)->name);
}
-static void
+STATIC void
printalias(const struct alias *a)
{
char *p;
@@ -214,7 +214,7 @@ printalias(const struct alias *a)
out1c('\n');
}
-static void
+STATIC void
printaliases(void)
{
int i, j;
OpenPOWER on IntegriCloud