zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: PATCH: yp_callback.foreach type
Date: Fri, 8 May 1998 00:54:40 -0500 (CDT)	[thread overview]
Message-ID: <199805080554.AAA02236@hzoli.home> (raw)

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


                 reply	other threads:[~1998-05-08  5:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805080554.AAA02236@hzoli.home \
    --to=hzoli@cs.elte.hu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).