summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_shell.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-29 22:59:43 +0000
committerdillon <dillon@FreeBSD.org>1999-01-29 22:59:43 +0000
commit072a211f3573aae83ee729df53b1c57d9f3e80cc (patch)
tree57edecef45c5b1cd329935e93f0cec96a547e3ee /sys/kern/imgact_shell.c
parente71381fcd931491f4ac05f2df28732f51b735745 (diff)
downloadFreeBSD-src-072a211f3573aae83ee729df53b1c57d9f3e80cc.zip
FreeBSD-src-072a211f3573aae83ee729df53b1c57d9f3e80cc.tar.gz
*_execsw static structures cannot be const due to the way they interact
with EXEC_SET, DECLARE_MODULE, and module_register. Specifically, module_register. We may eventually be able to make these const, but not now.
Diffstat (limited to 'sys/kern/imgact_shell.c')
-rw-r--r--sys/kern/imgact_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index e72b86d..361cf18 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_shell.c,v 1.16 1997/08/02 14:31:23 bde Exp $
+ * $Id: imgact_shell.c,v 1.17 1998/10/16 03:55:00 peter Exp $
*/
#include <sys/param.h>
@@ -134,5 +134,5 @@ exec_shell_imgact(imgp)
* Since `const' objects end up in the text segment, TEXT_SET is the
* correct directive to use.
*/
-static const struct execsw shell_execsw = { exec_shell_imgact, "#!" };
+static struct execsw shell_execsw = { exec_shell_imgact, "#!" };
EXEC_SET(shell, shell_execsw);
OpenPOWER on IntegriCloud