struct shm_structure {
pthread_mutex_t shm_mutex; // for safely accessing the structure
- uint16_t version; // deprecated -- check this is equal to NQPTP_SHM_STRUCTURES_VERSION
+ uint16_t version; // check this is equal to NQPTP_SHM_STRUCTURES_VERSION
uint32_t flags; // unused
uint64_t master_clock_id; // the current master clock
uint64_t local_time; // the time when the offset was calculated
for (i = 1; i < argc; ++i) {
if (argv[i][0] == '-') {
if (strcmp(argv[i] + 1, "V") == 0) {
- fprintf(stdout, "%s\n", PACKAGE_STRING);
+ fprintf(stdout, "Version: %s. Shared Memory Interface Version: %u.\n", VERSION, NQPTP_SHM_STRUCTURES_VERSION);
exit(EXIT_SUCCESS);
} else if (strcmp(argv[i] + 1, "vvv") == 0) {
debug_level = 3;