diff mbox series

[1/2] Simply rename extract_script to extract_scripts

Message ID 1514906653-28174-1-git-send-email-sbabic@denx.de
State Changes Requested
Headers show
Series [1/2] Simply rename extract_script to extract_scripts | expand

Commit Message

Stefano Babic Jan. 2, 2018, 3:24 p.m. UTC
The function extracts all scripts in the list.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 corelib/installer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/corelib/installer.c b/corelib/installer.c
index 4890e83..02461f7 100644
--- a/corelib/installer.c
+++ b/corelib/installer.c
@@ -145,7 +145,7 @@  int check_if_required(struct imglist *list, struct filehdr *pfdh,
  * Extract all scripts from a list from the image
  * and save them on the filesystem to be executed later
  */
-static int extract_script(int fd, struct imglist *head, const char *dest)
+static int extract_scripts(int fd, struct imglist *head, const char *dest)
 {
 	struct img_type *script;
 	int fdout;
@@ -166,7 +166,7 @@  static int extract_script(int fd, struct imglist *head, const char *dest)
 			return fdout;
 
 		ret = extract_next_file(fd, fdout, script->offset, 0,
-								script->is_encrypted, script->sha256);
+					script->is_encrypted, script->sha256);
 		close(fdout);
 
 		if (ret < 0)
@@ -260,7 +260,7 @@  int install_images(struct swupdate_cfg *sw, int fdsw, int fromfile)
 	/* Extract all scripts, preinstall scripts must be run now */
 	if (fromfile) {
 		const char* tmpdir_scripts = get_tmpdirscripts();
-		ret = extract_script(fdsw, &sw->scripts, tmpdir_scripts);
+		ret = extract_scripts(fdsw, &sw->scripts, tmpdir_scripts);
 		if (ret) {
 			ERROR("extracting script to %s failed", tmpdir_scripts);
 			return ret;