diff --git a/putty.h b/putty.h index b06ff898..cefb5364 100644 --- a/putty.h +++ b/putty.h @@ -1158,7 +1158,7 @@ void ser_setup_config_box(struct controlbox *b, int midsession, /* * Exports from version.c. */ -extern char ver[]; +extern const char ver[]; /* * Exports from unicode.c. diff --git a/ssh.h b/ssh.h index 7a7e8576..16f076c8 100644 --- a/ssh.h +++ b/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. */ -extern char sshver[]; +extern const char sshver[]; /* * Gross hack: pscp will try to start SFTP but fall back to scp1 if diff --git a/version.c b/version.c index f6086127..9c94b622 100644 --- a/version.c +++ b/version.c @@ -10,8 +10,8 @@ #include "version.h" -char ver[] = TEXTVER; -char sshver[] = SSHVER; +const char ver[] = TEXTVER; +const char sshver[] = SSHVER; /* * SSH local version string MUST be under 40 characters. Here's a diff --git a/windows/winpgen.c b/windows/winpgen.c index 69171bc2..98319608 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -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 { char **passphrase; diff --git a/windows/winpgnt.c b/windows/winpgnt.c index bffc01f9..86998a2b 100644 --- a/windows/winpgnt.c +++ b/windows/winpgnt.c @@ -49,7 +49,7 @@ #define APPNAME "Pageant" -extern char ver[]; +extern const char ver[]; static HWND keylist; static HWND aboutbox;