Blame SOURCES/0005-Trivial-style-fixes.patch

634418
From ac10bc27090916fe8fcdaf4a9f0e8cc0165f7210 Mon Sep 17 00:00:00 2001
634418
From: Unto Sten <sten.unto@gmail.com>
634418
Date: Sat, 11 May 2019 01:04:16 +0300
634418
Subject: [PATCH] Trivial style fixes
634418
634418
---
634418
 libsemanage/src/direct_api.c    | 2 +-
634418
 libsemanage/src/modules.c       | 2 +-
634418
 libsemanage/src/seusers_local.c | 2 +-
634418
 libsemanage/src/users_local.c   | 4 ++--
634418
 4 files changed, 5 insertions(+), 5 deletions(-)
634418
634418
diff --git a/libsemanage/src/direct_api.c b/libsemanage/src/direct_api.c
634418
index abc3a4cb..b037890a 100644
634418
--- a/libsemanage/src/direct_api.c
634418
+++ b/libsemanage/src/direct_api.c
634418
@@ -517,7 +517,7 @@ ssize_t bunzip(semanage_handle_t *sh, FILE *f, char **data)
634418
 	size_t  size = 1<<18;
634418
 	size_t  bufsize = size;
634418
 	int     bzerror;
634418
-	size_t  total=0;
634418
+	size_t  total = 0;
634418
 	char*   uncompress = NULL;
634418
 	char*   tmpalloc = NULL;
634418
 	int     ret = -1;
634418
diff --git a/libsemanage/src/modules.c b/libsemanage/src/modules.c
634418
index 62af1018..fa84d33e 100644
634418
--- a/libsemanage/src/modules.c
634418
+++ b/libsemanage/src/modules.c
634418
@@ -1130,7 +1130,7 @@ int semanage_module_install_info(semanage_handle_t *sh,
634418
 int semanage_module_remove_key(semanage_handle_t *sh,
634418
 			       const semanage_module_key_t *modkey)
634418
 {
634418
-	if (sh->funcs->remove_key== NULL) {
634418
+	if (sh->funcs->remove_key == NULL) {
634418
 		ERR(sh,
634418
 		    "No remove key function defined for this connection type.");
634418
 		return -1;
634418
diff --git a/libsemanage/src/seusers_local.c b/libsemanage/src/seusers_local.c
634418
index a79e2d3d..3e2761c4 100644
634418
--- a/libsemanage/src/seusers_local.c
634418
+++ b/libsemanage/src/seusers_local.c
634418
@@ -133,7 +133,7 @@ int semanage_seuser_modify_local(semanage_handle_t * handle,
634418
 	semanage_seuser_t *new = NULL;
634418
 
634418
 	if (!sename) {
634418
-		errno=EINVAL;
634418
+		errno = EINVAL;
634418
 		return -1;
634418
 	}
634418
 	rc = semanage_seuser_clone(handle, data, &new;;
634418
diff --git a/libsemanage/src/users_local.c b/libsemanage/src/users_local.c
634418
index 7aa43d44..8193476d 100644
634418
--- a/libsemanage/src/users_local.c
634418
+++ b/libsemanage/src/users_local.c
634418
@@ -38,7 +38,7 @@ static int lookup_seuser(semanage_handle_t * handle, const semanage_user_key_t *
634418
 	semanage_seuser_list_local(handle,
634418
 				   &records,
634418
 				   &count);
634418
-	for(i=0; i
634418
+	for(i = 0; i < count; i++) {
634418
 		sename = semanage_seuser_get_sename(records[i]);
634418
 		if (strcmp(name, sename) == 0) {
634418
 			errno = EINVAL;
634418
@@ -47,7 +47,7 @@ static int lookup_seuser(semanage_handle_t * handle, const semanage_user_key_t *
634418
 			rc = -1;
634418
 		}
634418
 	}
634418
-	for(i=0; i
634418
+	for(i = 0; i < count; i++)
634418
 		semanage_seuser_free(records[i]);
634418
 	free(records);
634418
 	semanage_user_free(user);
634418
-- 
634418
2.30.2
634418