diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-02-17 17:59:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-02-17 17:59:37 +0000 |
commit | aac4f34a2132d287fae403cde5101ce1473d0da4 (patch) | |
tree | 6ff7de9a47cca7a1cdc8bfacf75e0a2198df52a1 /usr.bin/make | |
parent | 5520786d257fd5dcedf5833abd8fc7a279a24c42 (diff) |
Remove unused variables; ok millert@
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/arch.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index d25f89b76b6..ef7cdee6234 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arch.c,v 1.92 2022/12/26 19:16:02 jmc Exp $ */ +/* $OpenBSD: arch.c,v 1.93 2023/02/17 17:59:36 miod Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -116,10 +116,8 @@ typedef struct Arch_ { char name[1]; /* Archive name. */ } Arch; -/* Used to get to ar's field sizes. */ -static struct ar_hdr *dummy; -#define AR_NAME_SIZE (sizeof(dummy->ar_name)) -#define AR_DATE_SIZE (sizeof(dummy->ar_date)) +#define AR_NAME_SIZE (sizeof(((struct ar_hdr *)0)->ar_name)) +#define AR_DATE_SIZE (sizeof(((struct ar_hdr *)0)->ar_date)) /* Each archive member is tied to an arch_member structure, * suitable for hashing. */ |