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/1e53ba6277d0
branches:  trunk
changeset: 983768:1e53ba6277d0
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 fe517ea396df -r 1e53ba6277d0 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 @@
                    (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