From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21095 invoked from network); 8 May 1998 05:59:00 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 May 1998 05:59:00 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id BAA10030; Fri, 8 May 1998 01:55:27 -0400 (EDT) Resent-Date: Fri, 8 May 1998 01:55:27 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199805080554.AAA02236@hzoli.home> Subject: PATCH: yp_callback.foreach type To: zsh-workers@math.gatech.edu (Zsh hacking and development) Date: Fri, 8 May 1998 00:54:40 -0500 (CDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"nIZ161.0.cS2.DvfKr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3948 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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))