Drone prints version/revision information at startup
This commit is contained in:
parent
57be4f3ada
commit
347fc02dcf
@ -30,6 +30,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern ProtocolManager *OstProtocolManager;
|
extern ProtocolManager *OstProtocolManager;
|
||||||
|
extern char *version;
|
||||||
|
extern char *revision;
|
||||||
|
|
||||||
int myport;
|
int myport;
|
||||||
|
|
||||||
@ -60,6 +62,9 @@ int main(int argc, char *argv[])
|
|||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug("Version: %s", version);
|
||||||
|
qDebug("Revision: %s", revision);
|
||||||
|
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
|
Loading…
Reference in New Issue
Block a user