projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing full stop.
[u/mdw/putty]
/
version.c
diff --git
a/version.c
b/version.c
index
834beec
..
c39709c
100644
(file)
--- a/
version.c
+++ b/
version.c
@@
-8,13
+8,22
@@
#if defined SNAPSHOT
char ver[] = "Development snapshot " STR(SNAPSHOT);
#if defined SNAPSHOT
char ver[] = "Development snapshot " STR(SNAPSHOT);
+char sshver[] = "PuTTY-Snapshot-" STR(SNAPSHOT);
#elif defined RELEASE
char ver[] = "Release " STR(RELEASE);
#elif defined RELEASE
char ver[] = "Release " STR(RELEASE);
+char sshver[] = "PuTTY-Release-" STR(RELEASE);
#else
char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
#else
char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
+char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__;
#endif
#endif
+
+/*
+ * SSH local version string MUST be under 40 characters. Here's a
+ * compile time assertion to verify this.
+ */
+enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };