From c3888bad9448f1be89ab2d6d2ea00aa6812aa730 Mon Sep 17 00:00:00 2001 From: zimoch Date: Fri, 3 Mar 2006 13:30:33 +0000 Subject: [PATCH] made epicsver compatible to 3.14 --- bootNotify.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bootNotify.c b/bootNotify.c index 70d78f8..02438db 100644 --- a/bootNotify.c +++ b/bootNotify.c @@ -5,6 +5,9 @@ * $Author: zimoch $ * * $Log: bootNotify.c,v $ +* Revision 1.3 2006/03/03 13:30:33 zimoch +* made epicsver compatible to 3.14 +* * Revision 1.2 2004/05/24 15:18:58 zimoch * use ifName() * @@ -30,8 +33,7 @@ #include #include #include - -extern char* epicsRelease1; +#include int bootNotify (char* script, char* script2) { @@ -51,7 +53,8 @@ int bootNotify (char* script, char* script2) { sprintf (command, "%s", script); } - sscanf (epicsRelease1, "@(#)Version R%s", epicsver); + sprintf (epicsver, "%d.%d.%d", + EPICS_VERSION, EPICS_REVISION, EPICS_MODIFICATION); return rsh (bootHost(), command, bootInfo("%T %e %n %d %F %s"), - vxWorksVersion, epicsver, etherAddr((char*)ifName()), 0); + vxWorksVersion, epicsver, etherAddr(ifName()), 0); }