Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mountd Fix typo, its the element not the array ...



details:   https://anonhg.NetBSD.org/src/rev/cc10f872f49a
branches:  trunk
changeset: 379543:cc10f872f49a
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Jun 05 08:26:34 2021 +0000

description:
Fix typo, its the element not the array ...

diffstat:

 usr.sbin/mountd/mountd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c89658543360 -r cc10f872f49a usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c  Sat Jun 05 06:40:59 2021 +0000
+++ b/usr.sbin/mountd/mountd.c  Sat Jun 05 08:26:34 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mountd.c,v 1.136 2021/06/04 10:46:57 hannken Exp $      */
+/*     $NetBSD: mountd.c,v 1.137 2021/06/05 08:26:34 hannken Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char     sccsid[] = "@(#)mountd.c  8.15 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: mountd.c,v 1.136 2021/06/04 10:46:57 hannken Exp $");
+__RCSID("$NetBSD: mountd.c,v 1.137 2021/06/05 08:26:34 hannken Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -1294,7 +1294,7 @@ get_exportlist(int n)
                    (mel->mel_nexports > 0 || errno != EOPNOTSUPP))
                        syslog(LOG_ERR, "Can't update exports for %s (%m)",
                            mel_tab[i].mel_path);
-               for (j = 0; j < (int)mel_tab->mel_nexports; j++) {
+               for (j = 0; j < (int)mel->mel_nexports; j++) {
                        struct export_args *export = &mel->mel_exports[j];
 
                        if (export->ex_indexfile)



Home | Main Index | Thread Index | Old Index