Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 13 Apr 2011 13:02:29 -0700
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-dev@...ts.openwall.com
Subject: fix warnings in mkv stuff [apply against jumbo-12 patch]

This patch fixes the following warnings from GCC 4.6.0. Apply on top
of jumbo-12 patch.

mkv.c: In function ‘show_pwd_r’:
mkv.c:97:15: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
genmkvpwd.c: In function ‘show_pwd_r’:
genmkvpwd.c:51:15: warning: variable ‘x’ set but not used
[-Wunused-but-set-variable]

-- 
Cheers,
Dhiru

diff -r e5b6382be200 src/genmkvpwd.c
--- a/src/genmkvpwd.c	Wed Apr 13 12:58:09 2011 -0700
+++ b/src/genmkvpwd.c	Wed Apr 13 12:59:31 2011 -0700
@@ -48,10 +48,8 @@
 	unsigned int k;
 	unsigned long lvl;
 	unsigned char curchar;
-	unsigned int x;
 
 	k=0;
-	x=pwd->len;
 	i = nbparts[pwd->password[pwd->len-1] + pwd->len*256 + pwd->level*256*gmax_len];
 	pwd->len++;
 	lvl = pwd->level;
diff -r e5b6382be200 src/mkv.c
--- a/src/mkv.c	Wed Apr 13 12:58:09 2011 -0700
+++ b/src/mkv.c	Wed Apr 13 12:59:31 2011 -0700
@@ -94,12 +94,10 @@
 	unsigned int k;
 	unsigned long lvl;
 	unsigned char curchar;
-	unsigned int x;
 	char pass_filtered[PLAINTEXT_BUFFER_SIZE];
 	char * pass;
 
 	k=0;
-	x=pwd->len;
 	i = nbparts[pwd->password[pwd->len-1] + pwd->len*256 + pwd->level*256*gmax_len];
 	pwd->len++;
 	lvl = pwd->level;

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ