From 0455e51cd528ba14b11248a7e722f0c05a7bc2eb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 3 Jun 2012 11:47:42 +0200 Subject: Use git-generated PACKAGE_VERSION in IPA IDTAG_SWVERSION We previously used to send the bogus string "0815" which was a hack from early development time, but is obviously not a generally useful idea. --- src/common/abis.c | 3 +-- src/osmo-bts-sysmo/main.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/common/abis.c b/src/common/abis.c index fbd5398e..92051f08 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -43,7 +43,6 @@ #include #include -extern char *software_version; extern uint8_t abis_mac[6]; /* @@ -174,7 +173,7 @@ static int abis_rx_ipa_id_get(struct ipabis_link *link, uint8_t *data, int len) break; case IPAC_IDTAG_EQUIPVERS: case IPAC_IDTAG_SWVERSION: - strcpy(str, software_version); + strcpy(str, PACKAGE_VERSION); break; case IPAC_IDTAG_UNITNAME: sprintf(str, "osmoBTS-%02x-%02x-%02x-%02x-%02x-%02x", diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index 1dcc8d39..03db2382 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -50,8 +50,6 @@ /* FIXME: read from real hardware */ const uint8_t abis_mac[6] = { 0,1,2,3,4,5 }; -/* FIXME: generate from git */ -const char *software_version = "0815"; static const char *config_file = "osmo-bts.cfg"; static int daemonize = 0; -- cgit v1.2.3