mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Const'ify arguments to a couple of functions to fix breakage
with -O2.
This commit is contained in:
parent
cea897b2bf
commit
0411773be7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156109
@ -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
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user