mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
Add some missing 'const' in version.c's string data.
I can't believe this codebase is around 20 years old and has had multiple giant const-fixing patches, and yet there are _still_ things that should have been const for years and aren't.
This commit is contained in:
parent
c0a57d0b9e
commit
f0f19b6147
2
putty.h
2
putty.h
@ -1158,7 +1158,7 @@ void ser_setup_config_box(struct controlbox *b, int midsession,
|
|||||||
/*
|
/*
|
||||||
* Exports from version.c.
|
* Exports from version.c.
|
||||||
*/
|
*/
|
||||||
extern char ver[];
|
extern const char ver[];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exports from unicode.c.
|
* Exports from unicode.c.
|
||||||
|
2
ssh.h
2
ssh.h
@ -489,7 +489,7 @@ void aes_ssh2_decrypt_blk(void *handle, unsigned char *blk, int len);
|
|||||||
/*
|
/*
|
||||||
* PuTTY version number formatted as an SSH version string.
|
* PuTTY version number formatted as an SSH version string.
|
||||||
*/
|
*/
|
||||||
extern char sshver[];
|
extern const char sshver[];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Gross hack: pscp will try to start SFTP but fall back to scp1 if
|
* Gross hack: pscp will try to start SFTP but fall back to scp1 if
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
char ver[] = TEXTVER;
|
const char ver[] = TEXTVER;
|
||||||
char sshver[] = SSHVER;
|
const char sshver[] = SSHVER;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SSH local version string MUST be under 40 characters. Here's a
|
* SSH local version string MUST be under 40 characters. Here's a
|
||||||
|
@ -134,7 +134,7 @@ static void progress_update(void *param, int action, int phase, int iprogress)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char ver[];
|
extern const char ver[];
|
||||||
|
|
||||||
struct PassphraseProcStruct {
|
struct PassphraseProcStruct {
|
||||||
char **passphrase;
|
char **passphrase;
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#define APPNAME "Pageant"
|
#define APPNAME "Pageant"
|
||||||
|
|
||||||
extern char ver[];
|
extern const char ver[];
|
||||||
|
|
||||||
static HWND keylist;
|
static HWND keylist;
|
||||||
static HWND aboutbox;
|
static HWND aboutbox;
|
||||||
|
Loading…
Reference in New Issue
Block a user