diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-01-29 16:22:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-01-29 16:22:37 +0000 |
commit | 6d7c91877d8195211b6f4ac547320276ffbbee01 (patch) | |
tree | d7f863b562865ef73c55587cba816bec3eb03069 | |
parent | f0f6c7dff96f885ed777bee7b6670ca526541704 (diff) |
repair declerations to satisfy -fno-common
ok kettenis
-rw-r--r-- | sys/arch/alpha/stand/boot/boot.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/stand/boot/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/stand/netboot/dev_net.c | 15 |
3 files changed, 4 insertions, 19 deletions
diff --git a/sys/arch/alpha/stand/boot/boot.c b/sys/arch/alpha/stand/boot/boot.c index 228b130787b..6aae43d7b84 100644 --- a/sys/arch/alpha/stand/boot/boot.c +++ b/sys/arch/alpha/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.28 2020/05/26 13:47:27 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.29 2021/01/29 16:22:34 deraadt Exp $ */ /* $NetBSD: boot.c,v 1.10 1997/01/18 01:58:33 cgd Exp $ */ /* @@ -59,7 +59,7 @@ extern char bootprog_name[]; struct bootinfo_v1 bootinfo_v1; -paddr_t ptbr_save; +extern paddr_t ptbr_save; int debug; diff --git a/sys/arch/alpha/stand/boot/conf.c b/sys/arch/alpha/stand/boot/conf.c index 608a4b61c8f..5f90decb968 100644 --- a/sys/arch/alpha/stand/boot/conf.c +++ b/sys/arch/alpha/stand/boot/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.6 2003/06/02 23:27:44 millert Exp $ */ +/* $OpenBSD: conf.c,v 1.7 2021/01/29 16:22:34 deraadt Exp $ */ /* $NetBSD: conf.c,v 1.3 1995/11/23 02:39:31 cgd Exp $ */ /* @@ -42,8 +42,6 @@ int diskopen(struct open_file *, ...); /* XXX */ -int errno; - struct devsw devsw[] = { { "disk", diskstrategy, diskopen, diskclose, diskioctl }, /*0*/ }; diff --git a/sys/arch/alpha/stand/netboot/dev_net.c b/sys/arch/alpha/stand/netboot/dev_net.c index 46e88fd3281..dce364ba506 100644 --- a/sys/arch/alpha/stand/netboot/dev_net.c +++ b/sys/arch/alpha/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_net.c,v 1.4 2014/07/13 15:31:20 mpi Exp $ */ +/* $OpenBSD: dev_net.c,v 1.5 2021/01/29 16:22:36 deraadt Exp $ */ /* $NetBSD: dev_net.c,v 1.4 1997/04/06 08:41:24 cgd Exp $ */ /* @@ -74,19 +74,6 @@ extern int nfs_root_node[]; /* XXX - get from nfs_mount() */ u_char bcea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; #endif -struct in_addr myip; /* my ip address */ -struct in_addr rootip; /* root ip address */ -struct in_addr gateip; /* swap ip address */ -u_int32_t netmask; /* subnet or net mask */ - -char rootpath[FNAME_SIZE]; - -int hostnamelen; -char hostname[FNAME_SIZE]; - -int domainnamelen; -char domainname[FNAME_SIZE]; - /* * Local things... */ |