瀏覽代碼

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>
Tom Rini 12 年之前
父節點
當前提交
268d966dff
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      common/env_callback.c
  2. 0 1
      include/env_callback.h

+ 1 - 1
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;

+ 0 - 1
include/env_callback.h

@@ -67,7 +67,6 @@ struct env_clbk_tbl {
 		int flags);
 };
 
-struct env_clbk_tbl *find_env_callback(const char *);
 void env_callback_init(ENTRY *var_entry);
 
 /*