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.
/*
* Exports from version.c.
*/
-extern char ver[];
+extern const char ver[];
/*
* Exports from unicode.c.
/*
* 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
#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
}
}
-extern char ver[];
+extern const char ver[];
struct PassphraseProcStruct {
char **passphrase;
#define APPNAME "Pageant"
-extern char ver[];
+extern const char ver[];
static HWND keylist;
static HWND aboutbox;