diff options
author | 2018-03-09 16:14:47 +0000 | |
---|---|---|
committer | 2018-03-09 16:14:47 +0000 | |
commit | d08f4bbf8d2b11d1f81f354934072821898c97cd (patch) | |
tree | afc6080323375e5de1d82da308c2062543f3b132 | |
parent | Add support for the DF_TEXTREL flag. (diff) | |
download | wireguard-openbsd-d08f4bbf8d2b11d1f81f354934072821898c97cd.tar.xz wireguard-openbsd-d08f4bbf8d2b11d1f81f354934072821898c97cd.zip |
Remove bogus copying of bootargs.
From Arrtturi Alm.
-rw-r--r-- | sys/arch/arm64/arm64/machdep.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index ac3a9f6344b..d45f6e18cf9 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.29 2018/02/06 20:35:21 naddy Exp $ */ +/* $OpenBSD: machdep.c,v 1.30 2018/03/09 16:14:47 kettenis Exp $ */ /* * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se> * @@ -1121,6 +1121,7 @@ collect_kernel_args(char *args) /* Make a local copy of the bootargs */ strncpy(bootargs, args, MAX_BOOT_STRING - sizeof(int)); } + void process_kernel_args(void) { @@ -1132,11 +1133,6 @@ process_kernel_args(void) } boothowto = 0; - - /* Make a local copy of the bootargs */ - strncpy(bootargs, cp, MAX_BOOT_STRING - sizeof(int)); - - cp = bootargs; boot_file = bootargs; /* Skip the kernel image filename */ |