tools:iio:iio_utils: mark private function static
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:40:01 +0000 (14:40 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 18:19:35 +0000 (19:19 +0100)
Functions _write_sysfs_int() and _write_sysfs_string() are supposed to
be called only by public wrappers, so make them static.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.c

index 60e5ec4165b70d0fa3e310891393f6ffd2458eda..812153ff18c310af6f1744447107ac07e3574f1b 100644 (file)
@@ -524,7 +524,7 @@ error_close_dir:
        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;