Compile-time warning in readpass.c

Florian Weimer Florian.Weimer at RUS.Uni-Stuttgart.DE
Tue Aug 28 22:55:42 EST 2001


The patch below fixes a compile-time warning in readpass.c.

MIME-Version: 1.0
Content-Type: application/aegis-patch
Subject: openssh.2 - Fix warning in readpass.c
Content-Name: openssh.2.C010.patch
Content-Disposition: attachment; filename=openssh.2.C010.patch
X-Aegis-Project-Name: openssh.2
X-Aegis-Change-Number: 10

#	
#	Fix the following warning in readpass.c: 
#	
#	readpass.c: In function `read_passphrase': 
#	readpass.c:120: warning: passing arg 2 of `ssh_askpass' discards
#	qualifiers from pointer target type
#	
Index: openssh/readpass.c
--- /usr/local/aegis/public/openssh/baseline/openssh/readpass.c	Mon Aug 27 19:15:44 2001
+++ /usr/local/aegis/public/openssh/branch.2/baseline/openssh/readpass.c	Tue Aug 28 11:03:52 2001
@@ -43,7 +43,7 @@
 #include "ssh.h"
 
 char *
-ssh_askpass(char *askpass, char *msg)
+ssh_askpass(const char *askpass, const char *msg)
 {
 	pid_t pid;
 	size_t len;


-- 
Florian Weimer 	                  Florian.Weimer at RUS.Uni-Stuttgart.DE
University of Stuttgart           http://cert.uni-stuttgart.de/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898



More information about the openssh-unix-dev mailing list