zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: yp_callback.foreach type
@ 1998-05-08  5:54 Zoltan Hidvegi
  0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1998-05-08  5:54 UTC (permalink / raw)
  To: Zsh hacking and development

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))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-08  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-08  5:54 PATCH: yp_callback.foreach type Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).