git: c41b16181210 - main - ypldap: Fix mismatch in array bounds for ldapclient().

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 03 Oct 2022 23:11:16 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c41b161812101300570d48b1fdd17600765992dc

commit c41b161812101300570d48b1fdd17600765992dc
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-10-03 23:10:41 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-10-03 23:10:41 +0000

    ypldap: Fix mismatch in array bounds for ldapclient().
    
    Reviewed by:    emaste
    Reported by:    GCC -Warray-parameter
    Differential Revision:  https://reviews.freebsd.org/D36807
---
 usr.sbin/ypldap/ypldap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/ypldap/ypldap.h b/usr.sbin/ypldap/ypldap.h
index 07e633fdeca5..702e3a5d06d6 100644
--- a/usr.sbin/ypldap/ypldap.h
+++ b/usr.sbin/ypldap/ypldap.h
@@ -197,7 +197,7 @@ int		 parse_config(struct env *, const char *, int);
 int		 cmdline_symset(char *);
 
 /* ldapclient.c */
-pid_t		 ldapclient(int []);
+pid_t		 ldapclient(int [2]);
 
 /* ypldap.c */
 void		 purge_config(struct env *);