standardize on "return foo;" rather than "return(foo);" or "return (foo);"
This commit is contained in:
@@ -68,7 +68,7 @@ alias_compare(const void *v1, const void *v2)
|
||||
res = 1;
|
||||
else if ((res = strcmp(a1->name, a2->name)) == 0)
|
||||
res = a1->type - a2->type;
|
||||
return(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -92,10 +92,10 @@ alias_find(char *name, int type)
|
||||
*/
|
||||
a = node->data;
|
||||
if (a->seqno == alias_seqno)
|
||||
return(NULL);
|
||||
return NULL;
|
||||
a->seqno = alias_seqno;
|
||||
}
|
||||
return(a);
|
||||
return a;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -116,9 +116,9 @@ alias_add(char *name, int type, struct member *members)
|
||||
if (rbinsert(aliases, a)) {
|
||||
snprintf(errbuf, sizeof(errbuf), "Alias `%s' already defined", name);
|
||||
alias_free(a);
|
||||
return(errbuf);
|
||||
return errbuf;
|
||||
}
|
||||
return(NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -136,7 +136,7 @@ alias_apply(int (*func)(void *, void *), void *cookie)
|
||||
int
|
||||
no_aliases(void)
|
||||
{
|
||||
return(rbisempty(aliases));
|
||||
return rbisempty(aliases);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -176,9 +176,9 @@ alias_remove(char *name, int type)
|
||||
key.name = name;
|
||||
key.type = type;
|
||||
if ((node = rbfind(aliases, &key)) == NULL)
|
||||
return(NULL);
|
||||
return NULL;
|
||||
a = rbdelete(aliases, node);
|
||||
return(a);
|
||||
return a;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user