From dd57c37d019d28fdf8b7ecafc4becd0bd9a9051a Mon Sep 17 00:00:00 2001 From: rillig Date: Tue, 4 Apr 2023 20:39:36 +0000 Subject: [PATCH] mount_portal: fix lint warnings about extern and empty declarations --- sbin/mount_portal/puffs_portal.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sbin/mount_portal/puffs_portal.c b/sbin/mount_portal/puffs_portal.c index 7f5284da4695..7e51f530a497 100644 --- a/sbin/mount_portal/puffs_portal.c +++ b/sbin/mount_portal/puffs_portal.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_portal.c,v 1.10 2019/05/23 11:13:17 kre Exp $ */ +/* $NetBSD: puffs_portal.c,v 1.11 2023/04/04 20:39:36 rillig Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include #ifndef lint -__RCSID("$NetBSD: puffs_portal.c,v 1.10 2019/05/23 11:13:17 kre Exp $"); +__RCSID("$NetBSD: puffs_portal.c,v 1.11 2023/04/04 20:39:36 rillig Exp $"); #endif /* !lint */ #include @@ -57,7 +57,7 @@ struct portal_node { __dead static void usage(void); -PUFFSOP_PROTOS(portal); +PUFFSOP_PROTOS(portal) #define PORTAL_ROOT NULL #define METADATASIZE (sizeof(int) + sizeof(size_t)) @@ -396,8 +396,6 @@ provide(struct puffs_usermount *pu, struct portal_node *portn, int main(int argc, char *argv[]) { - extern char *optarg; - extern int optind; struct puffs_usermount *pu; struct puffs_ops *pops; mntoptparse_t mp;