From: hadaq Date: Tue, 17 Jun 2008 18:51:06 +0000 (+0000) Subject: #include ! Without this it was craching at basename (argv[0]) on 64 bit... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=33031853dbe5f5acbfc6f67b920a6679caba6a2e;p=daqdata.git #include ! Without this it was craching at basename (argv[0]) on 64 bit platform as it assumed that the return value of basename is int (32 bit) but the pointer is 64 bit! Sergey Yurevich. --- diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 697091a..2625a48 100644 --- a/hadaq/evtbuild.c +++ b/hadaq/evtbuild.c @@ -1,5 +1,5 @@ static char *rcsId = - "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.89 2008-06-16 15:42:41 hadaq Exp $"; + "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.90 2008-06-17 18:51:06 hadaq Exp $"; #define _POSIX_C_SOURCE 199309L @@ -25,6 +25,7 @@ static char *rcsId = #include #include +#include #include @@ -492,6 +493,7 @@ static int argsFromParam (TheArgs *my, int argc, char *argv[]) conSetupParam (param, getenv ("DAQ_SETUP")); name = (char *) basename (argv[0]); + Param_getInt (param, name, "nrofmsgs", ¶mWasFound, &my->nrOfMsgs); Param_getStringArray (param, name, "slwctrlfile", PARAM_MAX_ARRAY_LEN, &my->slowCtrlFileCnt, my->slowCtrlFiles);