lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 6 Oct 2022 05:20:42 -0400
From:   Deming Wang <wangdeming@...pur.com>
To:     <keescook@...omium.org>, <boqun.feng@...il.com>,
        <gregkh@...uxfoundation.org>, <ojeda@...nel.org>,
        <masahiroy@...nel.org>
CC:     <linux-kernel@...r.kernel.org>, Deming Wang <wangdeming@...pur.com>
Subject: [PATCH] kallsyms: add required space for unified style

add required space before and after operators.

Signed-off-by: Deming Wang <wangdeming@...pur.com>
---
 scripts/kallsyms.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 03fa07ad45d9..1df9944030e2 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -213,7 +213,7 @@ static void check_symbol_range(const char *sym, unsigned long long addr,
 
 static struct sym_entry *read_symbol(FILE *in)
 {
-	char name[KSYM_NAME_LEN_BUFFER+1], type;
+	char name[KSYM_NAME_LEN_BUFFER + 1], type;
 	unsigned long long addr;
 	unsigned int len;
 	struct sym_entry *sym;
@@ -388,7 +388,7 @@ static int expand_symbol(const unsigned char *data, int len, char *result)
 		c = *data;
 		/* if the table holds a single char that is the same as the one
 		 * we are looking for, then end the search */
-		if (best_table[c][0]==c && best_table_len[c]==1) {
+		if (best_table[c][0] == c && best_table_len[c] == 1) {
 			*result++ = c;
 			total++;
 		} else {
@@ -641,7 +641,7 @@ static int find_best_token(void)
 {
 	int i, best, bestprofit;
 
-	bestprofit=-10000;
+	bestprofit = -10000;
 	best = 0;
 
 	for (i = 0; i < 0x10000; i++) {
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ