diff mbox series

[LEDE-DEV,2/2] mount: rename /proc/mount parser to mount_update_mount_list()

Message ID 20180208135020.16429-2-zajec5@gmail.com
State Accepted
Delegated to: Rafał Miłecki
Headers show
Series [LEDE-DEV,1/2] mount: improve handling mounts table size | expand

Commit Message

Rafał Miłecki Feb. 8, 2018, 1:50 p.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

Using "update" in the function name should better match its role than
"check". The main purpose of this function is to update content of the
"mounted" array.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 mount.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/mount.c b/mount.c
index 9cb1a43..f995745 100644
--- a/mount.c
+++ b/mount.c
@@ -612,7 +612,7 @@  char* is_mounted(char *block, char *path)
 	return 0;
 }
 
-static void mount_check_mount_list(void)
+static void mount_update_mount_list(void)
 {
 	FILE *fp = fopen("/proc/mounts", "r");
 	char tmp[256];
@@ -779,7 +779,7 @@  static void mount_check_enum(void)
 void mount_init(void)
 {
 	INIT_LIST_HEAD(&mounts);
-	timer_add(mount_check_mount_list, 2);
+	timer_add(mount_update_mount_list, 2);
 	timer_add(mount_check_enum, 1);
-	mount_check_mount_list();
+	mount_update_mount_list();
 }