Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: yp_callback.foreach type
- X-seq: zsh-workers 3948
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hacking and development)
- Subject: PATCH: yp_callback.foreach type
- Date: Fri, 8 May 1998 00:54:40 -0500 (CDT)
I forgot to mention, that all these patches I'm sending only apply to
3.1.3. They are already there in 3.0.5 or not relevant.
Here is the next patch:
* Src/Zle/zle_tricky.c: Remove wrong (int (*)(void)) prototype
from match_username cast. Go back to no prototype at all, since
some systems (e.g. on Linux) the yp_callback.foreach prototype
is wrong.
Zoli
*** Src/Zle/zle_tricky.c 1997/09/16 04:43:25 3.1.3.2
--- Src/Zle/zle_tricky.c 1997/09/19 05:46:49 3.1.3.3
***************
*** 1546,1552 ****
data.len = fpl;
/* Get potential matches from NIS and cull those without local accounts */
if (getdomainname(domain, YPMAXDOMAIN) == 0) {
! cb.foreach = (int ((*) _((void)))) match_username;
cb.data = (char *)&data;
yp_all(domain, PASSWD_MAP, &cb);
/* for (n = firstnode(matches); n; incnode(n))
--- 1546,1552 ----
data.len = fpl;
/* Get potential matches from NIS and cull those without local accounts */
if (getdomainname(domain, YPMAXDOMAIN) == 0) {
! cb.foreach = (int (*)()) match_username;
cb.data = (char *)&data;
yp_all(domain, PASSWD_MAP, &cb);
/* for (n = firstnode(matches); n; incnode(n))
Messages sorted by:
Reverse Date,
Date,
Thread,
Author