frontend/define.c, cleanup `prdefs()'

This commit is contained in:
rlar
2015-11-13 20:17:13 +01:00
parent e7c7e7052b
commit 83938330eb
+3 -7
View File
@@ -76,6 +76,9 @@ com_define(wordlist *wlist)
/* If that's all, then print the definition. */
if (wl == NULL) {
s = strchr(buf, '(');
if (s)
*s = '\0';
prdefs(buf);
return;
}
@@ -192,13 +195,6 @@ static void
prdefs(char *name)
{
struct udfunc *udf;
char *s;
if (name) {
s = strchr(name, '(');
if (s)
*s = '\0';
}
if (name && *name) { /* You never know what people will do */
for (udf = udfuncs; udf; udf = udf->ud_next)