From 8729b50b2b58600781ccc83698c662d0819626ad Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 10 Mar 2006 04:36:41 +0000 Subject: [PATCH] genevent fix git-svn-id: http://ltt.polymtl.ca/svn@1663 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/genevent-new/parser.c b/genevent-new/parser.c index 3d454a6a..1ab1b73b 100644 --- a/genevent-new/parser.c +++ b/genevent-new/parser.c @@ -234,18 +234,18 @@ void getTypeAttributes(parse_file_t *in, type_descriptor_t *t, else token = getName(in); if(!strcmp("network", token)) { t->network = 1; + } } else if(!strcmp("write",token)) { getEqual(in); car = seekNextChar(in); if(car == EOF) in->error(in,"write type was expected (custom?)"); else if(car == '\"') token = getQuotedString(in); else token = getName(in); - if(!strcmp("custom", token)) - t->network = 1; + if(!strcmp("custom", token)) { + t->custom_write = 1; + } } } - - } } /************************************************************************** @@ -350,7 +350,7 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac) } else if(!strcmp("arch", token)) { getEqual(in); car = seekNextChar(in); - if(car == '\"') fac->name = allocAndCopy(getQuotedString(in)); + if(car == '\"') fac->arch = allocAndCopy(getQuotedString(in)); else fac->arch = allocAndCopy(getName(in)); } } -- 2.34.1