[PATCH] Use RADIUSD_VERSION instead of RCS Id keyword for radclient version

Bjørn Mork bjorn at mork.no
Wed Sep 22 21:29:08 CEST 2010


RCS keywords don't make sense with git, so use the RADIUSD_VERSION
macro instead, like the server and radmin already do.

Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 src/main/radclient.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/radclient.c b/src/main/radclient.c
index 1266502..8864798 100644
--- a/src/main/radclient.c
+++ b/src/main/radclient.c
@@ -927,7 +927,7 @@ int main(int argc, char **argv)
 			timeout = atof(optarg);
 			break;
 		case 'v':
-			printf("radclient: $Id$ built on " __DATE__ " at " __TIME__ "\n");
+			printf("radclient " RADIUSD_VERSION " built on " __DATE__ " at " __TIME__ "\n");
 			exit(0);
 			break;
 		case 'x':
-- 
1.7.1




More information about the Freeradius-Users mailing list