Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/autofs autofs: fix lint errors



details:   https://anonhg.NetBSD.org/src/rev/892c63d233cf
branches:  trunk
changeset: 986236:892c63d233cf
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 14 20:40:55 2021 +0000

description:
autofs: fix lint errors

common.c(1034): error: void function parse_map cannot return value [213]
common.c(1053): error: void function parse_map cannot return value [213]

diffstat:

 usr.sbin/autofs/common.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 7d0b803fe609 -r 892c63d233cf usr.sbin/autofs/common.c
--- a/usr.sbin/autofs/common.c  Tue Sep 14 20:36:02 2021 +0000
+++ b/usr.sbin/autofs/common.c  Tue Sep 14 20:40:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.3 2019/11/16 12:21:06 tkusumi Exp $       */
+/*     $NetBSD: common.c,v 1.4 2021/09/14 20:40:55 rillig Exp $        */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * $FreeBSD: head/usr.sbin/autofs/common.c 303527 2016-07-30 01:10:05Z bapt $
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: common.c,v 1.3 2019/11/16 12:21:06 tkusumi Exp $");
+__RCSID("$NetBSD: common.c,v 1.4 2021/09/14 20:40:55 rillig Exp $");
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -1031,7 +1031,8 @@
        if (map[0] == '-') {
                if (wildcards != NULL)
                        *wildcards = true;
-               return parse_special_map(parent, map, key);
+               parse_special_map(parent, map, key);
+               return;
        }
 
        if (map[0] == '/') {
@@ -1050,7 +1051,8 @@
                if (error != 0) {
                        log_debugx("map file \"%s\" does not exist; falling "
                            "back to directory services", path);
-                       return parse_included_map(parent, map);
+                       parse_included_map(parent, map);
+                       return;
                }
        }
 



Home | Main Index | Thread Index | Old Index