Const'ify arguments to a couple of functions to fix breakage

with -O2.
This commit is contained in:
Daniel Eischen 2006-02-28 16:02:26 +00:00
parent cea897b2bf
commit 0411773be7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156109
2 changed files with 3 additions and 3 deletions

View file

@ -299,7 +299,7 @@ __END_DECLS
*/
__BEGIN_DECLS
extern int getpublickey (const char *, char *);
extern int getpublicandprivatekey (char *, char *);
extern int getpublicandprivatekey (const char *, char *);
extern int getsecretkey (char *, char *, char *);
__END_DECLS

View file

@ -65,7 +65,7 @@ int (*__getpublickey_LOCAL)() = 0;
*/
static int
__getpublickey_real(netname, publickey)
char *netname;
const char *netname;
char *publickey;
{
char lookup[3 * HEXKEYBYTES];
@ -92,7 +92,7 @@ __getpublickey_real(netname, publickey)
int
getpublicandprivatekey(key, ret)
char *key;
const char *key;
char *ret;
{
char buf[1024]; /* big enough */