Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount_portal mount_portal: fix lint warnings about exte...



details:   https://anonhg.NetBSD.org/src/rev/b19b74276cf3
branches:  trunk
changeset: 374160:b19b74276cf3
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Apr 04 20:39:36 2023 +0000

description:
mount_portal: fix lint warnings about extern and empty declarations

diffstat:

 sbin/mount_portal/puffs_portal.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 5d53fff32d0f -r b19b74276cf3 sbin/mount_portal/puffs_portal.c
--- a/sbin/mount_portal/puffs_portal.c  Tue Apr 04 20:28:01 2023 +0000
+++ b/sbin/mount_portal/puffs_portal.c  Tue Apr 04 20:39:36 2023 +0000
@@ -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 <sys/cdefs.h>
 #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 <sys/types.h>
@@ -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, stru
 int
 main(int argc, char *argv[])
 {
-       extern char *optarg;
-       extern int optind;
        struct puffs_usermount *pu;
        struct puffs_ops *pops;
        mntoptparse_t mp;



Home | Main Index | Thread Index | Old Index