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>] [day] [month] [year] [list]
Message-Id: <20061210170856.756504000@mvista.com>
Date:	Sun, 10 Dec 2006 09:08:56 -0800
From:	Daniel Walker <dwalker@...sta.com>
To:	akpm@...l.org
CC:	linux-kernel@...r.kernel.org
Subject: [PATCH] remove likely profiling int cast

Fix some wrong casting from unsigned int to int. Reported by Andreas Mohr.

Signed-Off-By: Daniel Walker <dwalker@...sta.com>

---
 lib/likely_prof.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.18/lib/likely_prof.c
===================================================================
--- linux-2.6.18.orig/lib/likely_prof.c
+++ linux-2.6.18/lib/likely_prof.c
@@ -86,8 +86,8 @@ static void *lp_seq_next(struct seq_file
 static int lp_seq_show(struct seq_file *out, void *p)
 {
 	struct likeliness *entry = p;
-	int true = entry->count[1];
-	int false = entry->count[0];
+	unsigned int true = entry->count[1];
+	unsigned int false = entry->count[0];
 
 	if (!entry->type) {
 		if (true > false)
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ