From 0f06800c51a8be8119f67eb6c9eb9c8007d5717e Mon Sep 17 00:00:00 2001 From: hades Date: Mon, 20 Nov 2000 10:07:20 +0000 Subject: [PATCH] *** empty log message *** --- hadaq/ansiTape.c | 5 +++-- hadaq/evtbuild.c | 4 ++-- hadaq/memnet.c | 6 +++--- hadaq/netmem.c | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hadaq/ansiTape.c b/hadaq/ansiTape.c index e3ed213..75a4bfc 100644 --- a/hadaq/ansiTape.c +++ b/hadaq/ansiTape.c @@ -93,10 +93,11 @@ AnsiTape *openAnsiTape(const char* filename) { msglog(LOG_ERR, "Could not jump over the filemark!\n"); exit(-2); } - label = allocMem(80*sizeof(char)); + label = allocMem(81*sizeof(char)); do { stat = read(tape, label, 80); - printf("EOF Label read te get fileSeqNum:\n%s\nSo it is.\n", label); + label[80] = '\0'; + msglog(LOG_INFO, "EOF Label read te get fileSeqNum:\n%s\n", label); if (i == 0) { sscanf(label, "%*31c%4d", &fileSeqNum); fileSeqNum++; diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 50eba6a..47f1340 100644 --- a/hadaq/evtbuild.c +++ b/hadaq/evtbuild.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.23 2000-11-19 17:41:03 hades Exp $"; +static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.24 2000-11-20 10:08:55 hades Exp $"; #define _POSIX_C_SOURCE 199309L @@ -134,7 +134,7 @@ static void argsDefault(TheArgs *my) { static int argsFromCL(TheArgs *my, int argc, char *argv[]) { int i; - while ((i = getopt(argc, argv, "am:f:s:r:o:d:p:v:x:")) != -1) { + while ((i = getopt(argc, argv, "am:f:s:r:o:d:q:p:v:x:")) != -1) { switch (i) { case 'm': my->nrOfMsgs = atoi(optarg); diff --git a/hadaq/memnet.c b/hadaq/memnet.c index 4287ac4..3be9434 100644 --- a/hadaq/memnet.c +++ b/hadaq/memnet.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.6 2000-11-10 17:58:53 hades Exp $"; +static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.7 2000-11-20 10:11:42 hades Exp $"; #define _XOPEN_SOURCE #include @@ -44,7 +44,7 @@ static int min(int a, int b) static void usage(const char *progName) { msglog(LOG_ERR, "Usage: %s [-a (agentCtrl)] -o outPath\n", progName); - msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority]\n"); + msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority] [-q queueSize]\n"); msglog_usage(); } @@ -69,7 +69,7 @@ static void argsDefault(TheArgs *my) { static int argsFromCL(TheArgs *my, int argc, char *argv[]) { int i; - while ((i = getopt(argc, argv, "aw:o:p:v:")) != -1) { + while ((i = getopt(argc, argv, "aw:q:o:p:v:")) != -1) { switch (i) { case 'w': my->bandWidth = atoi(optarg); diff --git a/hadaq/netmem.c b/hadaq/netmem.c index e1b9b48..36c630b 100644 --- a/hadaq/netmem.c +++ b/hadaq/netmem.c @@ -1,4 +1,4 @@ -static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.10 2000-11-08 08:27:14 hades Exp $"; +static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.11 2000-11-20 10:10:40 hades Exp $"; #define _XOPEN_SOURCE #include @@ -72,7 +72,7 @@ static void argsDefault(TheArgs *my) { static int argsFromCL(TheArgs *my, int argc, char *argv[]) { int i; - while ((i = getopt(argc, argv, "ai:m:p:v:")) != -1) { + while ((i = getopt(argc, argv, "ai:m:q:p:v:")) != -1) { switch (i) { case 'm': my->nrOfMsgs = atoi(optarg); -- 2.43.0