提交 2156b179 编写于 作者: H Hartmut Knaack 提交者: Jonathan Cameron

tools:iio:iio_utils: mark private function static

Functions _write_sysfs_int() and _write_sysfs_string() are supposed to
be called only by public wrappers, so make them static.
Signed-off-by: NHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 096f9b86
......@@ -524,7 +524,7 @@ int find_type_by_name(const char *name, const char *type)
return ret;
}
int _write_sysfs_int(char *filename, char *basedir, int val, int verify)
static int _write_sysfs_int(char *filename, char *basedir, int val, int verify)
{
int ret = 0;
FILE *sysfsfp;
......@@ -574,7 +574,8 @@ int write_sysfs_int_and_verify(char *filename, char *basedir, int val)
return _write_sysfs_int(filename, basedir, val, 1);
}
int _write_sysfs_string(char *filename, char *basedir, char *val, int verify)
static int _write_sysfs_string(char *filename, char *basedir, char *val,
int verify)
{
int ret = 0;
FILE *sysfsfp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册