Ignore:
Timestamp:
Nov 26, 2002, 10:24:54 PM (23 years ago)
Author:
bird
Message:

Import of RELENG_4_7_0_RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FREEBSD/src/kmk/lst.lib/lstDeQueue.c

    r9 r24  
    3434 * SUCH DAMAGE.
    3535 *
    36  * @(#)lstDeQueue.c     8.1 (Berkeley) 6/6/93
     36 * $FreeBSD: src/usr.bin/make/lst.lib/lstDeQueue.c,v 1.6 1999/08/28 01:03:48 peter Exp $
    3737 */
    3838
    3939#ifndef lint
    40 #include <sys/cdefs.h>
    41 __FBSDID("$FreeBSD: src/usr.bin/make/lst.lib/lstDeQueue.c,v 1.10 2002/10/09 02:00:22 jmallett Exp $");
     40static char sccsid[] = "@(#)lstDeQueue.c        8.1 (Berkeley) 6/6/93";
    4241#endif /* not lint */
    4342
     
    5554 *
    5655 * Results:
    57  *      The datum in the node at the head or (ick) NULL if the list
     56 *      The datum in the node at the head or (ick) NIL if the list
    5857 *      is empty.
    5958 *
     
    6362 *-----------------------------------------------------------------------
    6463 */
    65 void *
     64ClientData
    6665Lst_DeQueue (l)
    6766    Lst           l;
    6867{
    69     void *        rd;
     68    ClientData    rd;
    7069    register ListNode   tln;
    7170
    7271    tln = (ListNode) Lst_First (l);
    73     if (tln == NULL) {
    74         return ((void *) NULL);
     72    if (tln == NilListNode) {
     73        return ((ClientData) NIL);
    7574    }
    7675
    7776    rd = tln->datum;
    7877    if (Lst_Remove (l, (LstNode)tln) == FAILURE) {
    79         return ((void *) NULL);
     78        return ((ClientData) NIL);
    8079    } else {
    8180        return (rd);
Note: See TracChangeset for help on using the changeset viewer.