ctdb: Centralize ctdb_version_string
authorVolker Lendecke <vl@samba.org>
Thu, 21 Sep 2017 18:51:09 +0000 (11:51 -0700)
committerVolker Lendecke <vl@samba.org>
Tue, 26 Sep 2017 07:37:13 +0000 (09:37 +0200)
commite12ed08bd5c94f287acf0938a19a3d314624016a
treee3fb34c2a368bc8799fb1eb4aa2c037735c8ebc5
parenta919ded138a40008ac960525a753e55da3704af7
ctdb: Centralize ctdb_version_string

Whenever the current git hash changes, we recompile ctdb.c and
ctdb_daemon.c. As both have quite a few warnings with -Wall, this
makes it quite difficult to see the real warnings that pop up during
development. Centralize the ctdb_version_string to just a single file
without warnings.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/version.c [new file with mode: 0644]
ctdb/common/version.h [new file with mode: 0644]
ctdb/server/ctdb_daemon.c
ctdb/tools/ctdb.c
ctdb/wscript