summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-29 18:19:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-29 18:19:49 +0200
commit44237c37017fe0dfd194da95d576f9a0eb4ea796 (patch)
treefb006c6f8d23ca98955aaaf07877540a0f457feb /svdrp.c
parent8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1 (diff)
downloadvdr-44237c37017fe0dfd194da95d576f9a0eb4ea796.tar.gz
vdr-44237c37017fe0dfd194da95d576f9a0eb4ea796.tar.bz2
Version number defined via a macro
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index 6873d166..1fa689b9 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.2 2000/07/24 16:43:51 kls Exp $
+ * $Id: svdrp.c 1.3 2000/07/29 18:19:49 kls Exp $
*/
#define _GNU_SOURCE
@@ -369,7 +369,7 @@ void cSVDRP::CmdHelp(const char *Option)
}
}
else {
- Reply(-214, "This is VDR version 0.6"); //XXX dynamically insert version number
+ Reply(-214, "This is VDR version %s", VDRVERSION);
Reply(-214, "Topics:");
const char **hp = HelpPages;
while (*hp) {
@@ -598,7 +598,7 @@ void cSVDRP::Process(void)
//TODO how can we get the *full* hostname?
gethostname(buffer, sizeof(buffer));
time_t now = time(NULL);
- Reply(220, "%s SVDRP VideoDiskRecorder 0.6; %s", buffer, ctime(&now));//XXX dynamically insert version number
+ Reply(220, "%s SVDRP VideoDiskRecorder %s; %s", VDRVERSION, buffer, ctime(&now));
}
int rbytes = readstring(filedes, buffer, sizeof(buffer) - 1);
if (rbytes > 0) {