summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h4
-rw-r--r--svdrp.c6
-rw-r--r--vdr.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/config.h b/config.h
index be1c7ec7..460dcb5b 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 1.11 2000/07/23 17:17:10 kls Exp $
+ * $Id: config.h 1.12 2000/07/29 18:18:00 kls Exp $
*/
#ifndef __CONFIG_H
@@ -17,6 +17,8 @@
#include "dvbapi.h"
#include "tools.h"
+#define VDRVERSION "0.6"
+
#define MaxBuffer 10000
enum eKeys { // "Up" and "Down" must be the first two keys!
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) {
diff --git a/vdr.c b/vdr.c
index 51422234..0d418dc8 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.25 2000/07/28 15:55:31 kls Exp $
+ * $Id: vdr.c 1.26 2000/07/29 18:19:12 kls Exp $
*/
#include <getopt.h>
@@ -131,7 +131,7 @@ int main(int argc, char *argv[])
abort();
#endif
}
- isyslog(LOG_INFO, "started");
+ isyslog(LOG_INFO, "VDR version %s started", VDRVERSION);
// DVB interfaces: