summaryrefslogtreecommitdiff
path: root/usr.bin/mail/cmd2.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-05-10 12:10:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-05-10 12:10:51 +0000
commit18c8723b1a72b8d61e193a30a870e1b86f749db6 (patch)
tree4d90548b3e495f008329bcfc5907e9c648a13ef9 /usr.bin/mail/cmd2.c
parent22a1d509db56f1a1153cd32067cd0385158dc6d2 (diff)
Get rid of the ancient "clobber" command. It was really only for debugging
purposes. Noticed and OK by deraadt@
Diffstat (limited to 'usr.bin/mail/cmd2.c')
-rw-r--r--usr.bin/mail/cmd2.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c
index 03c03c17a06..72a4cbe16e6 100644
--- a/usr.bin/mail/cmd2.c
+++ b/usr.bin/mail/cmd2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd2.c,v 1.13 2003/10/24 20:32:06 avsm Exp $ */
+/* $OpenBSD: cmd2.c,v 1.14 2004/05/10 12:10:50 millert Exp $ */
/* $NetBSD: cmd2.c,v 1.7 1997/05/17 19:55:10 pk Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)cmd2.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: cmd2.c,v 1.13 2003/10/24 20:32:06 avsm Exp $";
+static const char rcsid[] = "$OpenBSD: cmd2.c,v 1.14 2004/05/10 12:10:50 millert Exp $";
#endif
#endif /* not lint */
@@ -373,40 +373,6 @@ core(void *v)
}
/*
- * Clobber as many bytes of stack as the user requests.
- */
-int
-clobber(void *v)
-{
- char **argv = v;
- int times;
-
- if (argv[0] == 0)
- times = 1;
- else
- times = (atoi(argv[0]) + 511) / 512;
- clob1(times);
- return(0);
-}
-
-/*
- * Clobber the stack.
- */
-void
-clob1(n)
- int n;
-{
- char buf[512];
- char *cp;
-
- if (n <= 0)
- return;
- for (cp = buf; cp < &buf[512]; *cp++ = 0xFF)
- ;
- clob1(n - 1);
-}
-
-/*
* Add the given header fields to the retained list.
* If no arguments, print the current list of retained fields.
*/