diff options
author | gad <gad@FreeBSD.org> | 2004-06-01 19:00:42 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-06-01 19:00:42 +0000 |
commit | 921b14b52130a223d0e9ed4382ed78d3015edb43 (patch) | |
tree | 1ff5f39a6110edd67e22310b4235563199010ab5 /bin | |
parent | 3f104e9ea11ed819cdae798619a3d2bf96a838f7 (diff) | |
download | FreeBSD-src-921b14b52130a223d0e9ed4382ed78d3015edb43.zip FreeBSD-src-921b14b52130a223d0e9ed4382ed78d3015edb43.tar.gz |
Since I'm not ready to add the non-standard ADD_PS_LISTRESET feature,
remove the #ifdef for it for now. I might add the feature for real at
some later date, there isn't much reason for the #ifdef for now.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/ps.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 52ecbed..3a445d2 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -807,35 +807,10 @@ add_list(struct listinfo *inf, const char *argp) } if (!toolong) { *cp = '\0'; -#ifndef ADD_PS_LISTRESET /* - * This is how the standard expects lists to - * be handled. + * Add this single element to the given list. */ inf->addelem(inf, elemcopy); -#else - /*- - * This would add a simple non-standard-but-convienent - * feature. - * - * XXX - The first time I tried to add this check, - * it increased the total size of `ps' by 3940 - * bytes on i386! That's 12% of the entire - * program! The `ps.o' file grew by only about - * 40 bytes, but the final (stripped) executable - * in /bin/ps grew by 12%. I have not had time - * to investigate, so skip the feature for now. - */ - /* - * We now have a single element. Add it to the - * list, unless the element is ":". In that case, - * reset the list so previous entries are ignored. - */ - if (strcmp(elemcopy, ":") == 0) - inf->count = 0; - else - inf->addelem(inf, elemcopy); -#endif } else { /* * The string is too long to copy. Find the end |