OSSP CVS Repository

ossp - Check-in [3510]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3510
Date: 2003-Jul-11 11:38:29 (local)
2003-Jul-11 09:38:29 (UTC)
User:ms
Branch:
Comment: Remove hardcoded version, and replace with dynamic shtool generated data.
Tickets:
Inspections:
Files:
ossp-pkg/rc/rc_config.c      1.40 -> 1.41     8 inserted, 3 deleted
ossp-pkg/rc/rc_private.h      1.37 -> 1.38     1 inserted, 4 deleted

ossp-pkg/rc/rc_config.c 1.40 -> 1.41

--- rc_config.c  2003/07/11 09:18:20     1.40
+++ rc_config.c  2003/07/11 09:38:29     1.41
@@ -29,11 +29,16 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include <dirent.h>         /* For opendir(3) */
+#include <dirent.h>     /* For opendir(3) */
 
 #include "rc.h"
 #include "rc_config.h"
-#include "rc_const.h"       /* String constants                     */
+#include "rc_const.h"   /* String constants */
+
+/* Cludge the version id */
+#define _RC_VERSION_C_AS_HEADER_
+#include "rc_version.c"
+#undef  _RC_VERSION_C_AS_HEADER_
 
 static int m_nLocks = 0;    /* Server locks, not thread-safe FIXME  */
 
@@ -264,7 +269,7 @@
             bStop = TRUE;
         }
         else if (configGetval(RC_VER_VAL)) {
-            fprintf(stdout, "OSSP rc %s\n", RC_VERSION);
+            fprintf(stdout, "OSSP rc %s\n", rc_version.v_short);
             bStop = TRUE;
         }
     }


ossp-pkg/rc/rc_private.h 1.37 -> 1.38

--- rc_private.h 2003/07/07 13:30:51     1.37
+++ rc_private.h 2003/07/11 09:38:29     1.38
@@ -45,10 +45,7 @@
 #define TRACEL(num) fprintf(stderr, "%s:%d: %ld\n", __FILE__, __LINE__, (long int)num)
 #endif
 
-
-/* FIXME Tie to shtool generation */
-#define RC_VERSION   "77.77"
-
+/* Pointer and string manipulation constants */
 #define RC_SEC_SUB          1
 #define RC_GOOD_MEASURE     8
 #define RC_EXEC_MAXARGS     8

CVSTrac 2.0.1