From 77e4b1bd8000f0b7d2b3b84e61575b7d7249770a Mon Sep 17 00:00:00 2001 From: job Date: Tue, 29 Nov 2022 20:41:32 +0000 Subject: [PATCH] Only include stdarg.h, if we call any of va_{start,end}() OK tb@ --- usr.sbin/rpki-client/as.c | 3 +-- usr.sbin/rpki-client/aspa.c | 3 +-- usr.sbin/rpki-client/cert.c | 3 +-- usr.sbin/rpki-client/cms.c | 3 +-- usr.sbin/rpki-client/crl.c | 3 +-- usr.sbin/rpki-client/gbr.c | 3 +-- usr.sbin/rpki-client/ip.c | 3 +-- usr.sbin/rpki-client/main.c | 3 ++- usr.sbin/rpki-client/mft.c | 3 +-- usr.sbin/rpki-client/roa.c | 3 +-- usr.sbin/rpki-client/validate.c | 3 +-- usr.sbin/rpki-client/x509.c | 3 +-- 12 files changed, 13 insertions(+), 23 deletions(-) diff --git a/usr.sbin/rpki-client/as.c b/usr.sbin/rpki-client/as.c index e5975b7ba2c..c4c2dd188cb 100644 --- a/usr.sbin/rpki-client/as.c +++ b/usr.sbin/rpki-client/as.c @@ -1,4 +1,4 @@ -/* $OpenBSD: as.c,v 1.9 2022/11/29 20:26:22 job Exp $ */ +/* $OpenBSD: as.c,v 1.10 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -18,7 +18,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/aspa.c b/usr.sbin/rpki-client/aspa.c index e7a948d7a11..79bafc03939 100644 --- a/usr.sbin/rpki-client/aspa.c +++ b/usr.sbin/rpki-client/aspa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aspa.c,v 1.8 2022/11/26 17:14:40 job Exp $ */ +/* $OpenBSD: aspa.c,v 1.9 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Theo Buehler @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/cert.c b/usr.sbin/rpki-client/cert.c index 04a387dee96..87c0bc24cd6 100644 --- a/usr.sbin/rpki-client/cert.c +++ b/usr.sbin/rpki-client/cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cert.c,v 1.98 2022/11/26 17:14:40 job Exp $ */ +/* $OpenBSD: cert.c,v 1.99 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Job Snijders @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/cms.c b/usr.sbin/rpki-client/cms.c index 72e99726c83..795ebf7d412 100644 --- a/usr.sbin/rpki-client/cms.c +++ b/usr.sbin/rpki-client/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.24 2022/11/28 18:33:56 tb Exp $ */ +/* $OpenBSD: cms.c,v 1.25 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -17,7 +17,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/crl.c b/usr.sbin/rpki-client/crl.c index e1e5378c82f..69f3013b48f 100644 --- a/usr.sbin/rpki-client/crl.c +++ b/usr.sbin/rpki-client/crl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crl.c,v 1.18 2022/11/29 20:26:22 job Exp $ */ +/* $OpenBSD: crl.c,v 1.19 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/gbr.c b/usr.sbin/rpki-client/gbr.c index 936f65e79a2..c3644ca5808 100644 --- a/usr.sbin/rpki-client/gbr.c +++ b/usr.sbin/rpki-client/gbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbr.c,v 1.18 2022/11/29 20:26:22 job Exp $ */ +/* $OpenBSD: gbr.c,v 1.19 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2020 Claudio Jeker * @@ -16,7 +16,6 @@ */ #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/ip.c b/usr.sbin/rpki-client/ip.c index c229fc23042..89c3088aefb 100644 --- a/usr.sbin/rpki-client/ip.c +++ b/usr.sbin/rpki-client/ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip.c,v 1.26 2022/11/29 20:26:22 job Exp $ */ +/* $OpenBSD: ip.c,v 1.27 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index afa1878c655..390ea90a818 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.225 2022/11/28 17:47:01 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.226 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index ed9cd187120..d9ab5dfb7df 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.79 2022/11/26 12:02:37 job Exp $ */ +/* $OpenBSD: mft.c,v 1.80 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2019 Kristaps Dzonsons @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/roa.c b/usr.sbin/rpki-client/roa.c index ef0564a5fa6..b2367dc1684 100644 --- a/usr.sbin/rpki-client/roa.c +++ b/usr.sbin/rpki-client/roa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: roa.c,v 1.57 2022/11/26 17:14:40 job Exp $ */ +/* $OpenBSD: roa.c,v 1.58 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2019 Kristaps Dzonsons @@ -18,7 +18,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/validate.c b/usr.sbin/rpki-client/validate.c index b75f5260910..322089bc725 100644 --- a/usr.sbin/rpki-client/validate.c +++ b/usr.sbin/rpki-client/validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: validate.c,v 1.49 2022/11/29 11:45:03 claudio Exp $ */ +/* $OpenBSD: validate.c,v 1.50 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c index 8097e5e3506..8c03a8909ca 100644 --- a/usr.sbin/rpki-client/x509.c +++ b/usr.sbin/rpki-client/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.60 2022/11/29 20:26:22 job Exp $ */ +/* $OpenBSD: x509.c,v 1.61 2022/11/29 20:41:32 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Claudio Jeker @@ -20,7 +20,6 @@ #include #include -#include #include #include #include -- 2.20.1