Cosmetic changes.
This commit is contained in:
@@ -82,14 +82,14 @@ hag_head: '(' tokenSTRING ')'
|
||||
}
|
||||
;
|
||||
|
||||
hag_body: '{' hag_user_list '}'
|
||||
hag_body: '{' hag_host_list '}'
|
||||
;
|
||||
|
||||
hag_user_list: hag_user_list ',' hag_user_list_name
|
||||
| hag_user_list_name
|
||||
hag_host_list: hag_host_list ',' hag_host_list_name
|
||||
| hag_host_list_name
|
||||
;
|
||||
|
||||
hag_user_list_name: tokenSTRING
|
||||
hag_host_list_name: tokenSTRING
|
||||
{
|
||||
if (asHagAddHost(yyHag,$1))
|
||||
yyerror("");
|
||||
|
||||
@@ -1172,17 +1172,16 @@ static HAG *asHagAdd(const char *hagName)
|
||||
static long asHagAddHost(HAG *phag,const char *host)
|
||||
{
|
||||
HAGNAME *phagname;
|
||||
int ind;
|
||||
int i;
|
||||
|
||||
if(!phag) return(0);
|
||||
phagname = asCalloc(1,sizeof(HAGNAME)+strlen(host)+1);
|
||||
if (!phag) return 0;
|
||||
phagname = asCalloc(1, sizeof(HAGNAME)+strlen(host)+1);
|
||||
phagname->host = (char *)(phagname+1);
|
||||
strcpy(phagname->host,host);
|
||||
for(ind=0; ind<strlen(phagname->host); ind++) {
|
||||
phagname->host[ind] = (char)tolower((int)phagname->host[ind]);
|
||||
for (i = 0; i < strlen(phagname->host); i++) {
|
||||
phagname->host[i] = (char)tolower((int)host[i]);
|
||||
}
|
||||
ellAdd(&phag->list,(ELLNODE *)phagname);
|
||||
return(0);
|
||||
ellAdd(&phag->list, (ELLNODE *)phagname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ASG *asAsgAdd(const char *asgName)
|
||||
|
||||
Reference in New Issue
Block a user