Skip to content
Snippets Groups Projects
Commit 3f303124 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Display the libmosquitto version number too (which applicable)

parent 1427ec60
No related branches found
No related tags found
No related merge requests found
Pipeline #8198 passed
......@@ -76,6 +76,7 @@ char* socklib_version(char* str, size_t size, char* winsock_ver)
void sbbs_t::ver()
{
char str[128], compiler[32], os[128], cpu[128];
char tmp[128];
CRLF;
strcpy(str, VERSION_NOTICE);
......@@ -129,6 +130,14 @@ void sbbs_t::ver()
center(str);
CRLF;
#ifdef USE_MOSQUITTO
SAFECOPY(str, mqtt_libver(tmp, sizeof tmp));
safe_snprintf(tmp, sizeof tmp, " (%u)", LIBMOSQUITTO_VERSION_NUMBER);
SAFECAT(str, tmp);
center(str);
CRLF;
#endif
safe_snprintf(str, sizeof(str), "%s %s", os_version(os, sizeof(os)), os_cpuarch(cpu, sizeof(cpu)));
center(str);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment