1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

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 __BEGIN_DECLS
extern int getpublickey (const char *, char *); extern int getpublickey (const char *, char *);
extern int getpublicandprivatekey (char *, char *); extern int getpublicandprivatekey (const char *, char *);
extern int getsecretkey (char *, char *, char *); extern int getsecretkey (char *, char *, char *);
__END_DECLS __END_DECLS

View File

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