From 6807ce3100b3cbbbd64cc83c1c0799efadccea49 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 12 Jun 2011 15:37:10 +0000 Subject: [PATCH] =?UTF-8?q?drop=20long-deprecated=20'set=20=C2=B1o=20arc4r?= =?UTF-8?q?andom'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- misc.c | 10 +--------- mksh.1 | 7 +------ sh_flags.h | 5 +---- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/misc.c b/misc.c index 5dde266..bdffe8a 100644 --- a/misc.c +++ b/misc.c @@ -29,7 +29,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.167 2011/06/12 14:45:34 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.168 2011/06/12 15:37:08 tg Exp $"); /* type bits for unsigned char */ unsigned char chtypes[UCHAR_MAX + 1]; @@ -356,14 +356,6 @@ parse_args(const char **argv, break; } i = option(go.optarg); -#ifndef MKSH_NO_DEPRECATED_WARNING - if ((enum sh_flag)i == FARC4RANDOM) { - warningf(true, "Do not use set ±o arc4random," - " it will be removed in the next version" - " of mksh!"); - return (0); - } -#endif if ((i != (size_t)-1) && set == Flag(i)) /* * Don't check the context if the flag diff --git a/mksh.1 b/mksh.1 index e6e7f23..91040ef 100644 --- a/mksh.1 +++ b/mksh.1 @@ -1,4 +1,4 @@ -.\" $MirOS: src/bin/mksh/mksh.1,v 1.263 2011/06/12 15:34:19 tg Exp $ +.\" $MirOS: src/bin/mksh/mksh.1,v 1.264 2011/06/12 15:37:09 tg Exp $ .\" $OpenBSD: ksh.1,v 1.140 2011/04/23 10:14:59 sobrado Exp $ .\"- .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, @@ -4044,11 +4044,6 @@ during file name generation. Print commands and parameter assignments when they are executed, preceded by the value of .Ev PS4 . -.It Ic arc4random -Deprecated, will be removed in -.Nm -R41. -Do not use, emits a warning to stderr. .It Ic bgnice Background jobs are run with lower priority. .It Ic braceexpand diff --git a/sh_flags.h b/sh_flags.h index ee8f865..a850220 100644 --- a/sh_flags.h +++ b/sh_flags.h @@ -1,5 +1,5 @@ #if defined(SHFLAGS_DEFNS) -__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.8 2011/02/11 01:18:23 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.9 2011/06/12 15:37:10 tg Exp $"); #define FN(sname,cname,ochar,flags) /* nothing */ #elif defined(SHFLAGS_ENUMS) #define FN(sname,cname,ochar,flags) cname, @@ -21,9 +21,6 @@ __RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.8 2011/02/11 01:18:23 tg Exp $"); /* -a all new parameters are created with the export attribute */ F0("allexport", FEXPORT, 'a', OF_ANY) -/* ./. backwards compat: dummy, emits a warning */ -FN("arc4random", FARC4RANDOM, 0, OF_ANY) - #if HAVE_NICE /* ./. bgnice */ FN("bgnice", FBGNICE, 0, OF_ANY)