summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-03-12 06:16:50 +0000
committerTom Rini <trini@ti.com>2013-03-12 14:51:16 -0400
commit84872d1b632efd0e02f295b7042ee10e68ca0060 (patch)
tree7f7518413a7600a437a6ed83df688a47b0dae850
parent5091e9a86ea034ded668d299e09c1d5dd2cb680c (diff)
env_callback: Mark find_env_callback as static
This is not called outside of env_callback.c so mark static, remove from <env_callback.h> Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--common/env_callback.c2
-rw-r--r--include/env_callback.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/common/env_callback.c b/common/env_callback.c
index 78ca3674f0..78aafb4f2c 100644
--- a/common/env_callback.c
+++ b/common/env_callback.c
@@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR;
/*
* Look up a callback function pointer by name
*/
-struct env_clbk_tbl *find_env_callback(const char *name)
+static struct env_clbk_tbl *find_env_callback(const char *name)
{
struct env_clbk_tbl *clbkp;
int i;
diff --git a/include/env_callback.h b/include/env_callback.h
index c583120c1c..7a606de70b 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -60,7 +60,6 @@ struct env_clbk_tbl {
int flags);
};
-struct env_clbk_tbl *find_env_callback(const char *);
void env_callback_init(ENTRY *var_entry);
/*