Version 0.1
authorviric@llimona
Wed, 04 Jul 2007 21:15:57 +0200
changeset 6 07f184944f3f
parent 5 470463cba5cf
child 7 6102b11bac49
Version 0.1
tcpscript.c
--- a/tcpscript.c	Wed Jul 04 21:12:09 2007 +0200
+++ b/tcpscript.c	Wed Jul 04 21:15:57 2007 +0200
@@ -39,7 +39,7 @@
  */
 
 /*
- * tcpscript - Modified from script - 2007 Lluis Batlle i Rossell
+ * tcpscript - Modified from 'script' - 2007 Lluis Batlle i Rossell
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -97,6 +97,7 @@
     MAXCONNS = 10
 };
 static int accept_socket;
+const char version[] = "0.1";
 
 static char *progname;
 
@@ -137,8 +138,9 @@
 
 	if (argc == 2) {
 		if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
-			printf("%s, modification of 'script', by %s\n",
-			       progname, "Lluis Batlle i Rossell 2007");
+			printf("%s %s, modification of 'script' by %s\n",
+			       progname, version,
+                   "Lluis Batlle i Rossell 2007");
 			return 0;
 		}
 	}