summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-28 17:15:38 +0000
committerphk <phk@FreeBSD.org>2002-09-28 17:15:38 +0000
commit1dfc2c167f0c0ee95c98088b2c05b50350b97ddb (patch)
tree072f805928e7e540a4d2c0a3a7ec37f7529204a0 /sys/ddb
parent523f5243860c40ec5c7a3e961080d6035dbcb435 (diff)
downloadFreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.zip
FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.tar.gz
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_input.c10
-rw-r--r--sys/ddb/db_watch.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index bee293f..d9578d8 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -69,7 +69,7 @@ static int db_inputchar(int c);
static void db_putnchars(int c, int count);
static void db_putstring(char *s, int count);
-void
+static void
db_putstring(s, count)
char *s;
int count;
@@ -78,7 +78,7 @@ db_putstring(s, count)
cnputc(*s++);
}
-void
+static void
db_putnchars(c, count)
int c;
int count;
@@ -92,7 +92,7 @@ db_putnchars(c, count)
*/
#define DEL_FWD 0
#define DEL_BWD 1
-void
+static void
db_delete(n, bwd)
int n;
int bwd;
@@ -113,7 +113,7 @@ db_delete(n, bwd)
}
/* returns TRUE at end-of-line */
-int
+static int
db_inputchar(c)
int c;
{
@@ -290,7 +290,7 @@ db_inputchar(c)
return (0);
}
-int
+static int
cnmaygetc()
{
return (-1);
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index f25b295..127e3bb 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -71,7 +71,7 @@ int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
void db_md_list_watchpoints(void);
-db_watchpoint_t
+static db_watchpoint_t
db_watchpoint_alloc()
{
register db_watchpoint_t watch;
@@ -90,7 +90,7 @@ db_watchpoint_alloc()
return (watch);
}
-void
+static void
db_watchpoint_free(watch)
register db_watchpoint_t watch;
{
OpenPOWER on IntegriCloud