patch-2.4.4 linux/include/asm-s390/queue.h
Next file: linux/include/asm-s390/s390-regs-common.h
Previous file: linux/include/asm-s390/ptrace.h
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Wed Apr 11 19:02:28 2001
- Orig file:
v2.4.3/linux/include/asm-s390/queue.h
- Orig date:
Tue Feb 13 14:13:44 2001
diff -u --recursive --new-file v2.4.3/linux/include/asm-s390/queue.h linux/include/asm-s390/queue.h
@@ -7,8 +7,8 @@
*
* A little set of queue utilies.
*/
+
#include <linux/stddef.h>
-#include <asm/types.h>
typedef struct queue
{
@@ -105,8 +105,8 @@
for(curr=lhead;curr!=NULL;curr=curr->next)
if(curr==member)
- return(TRUE);
- return(FALSE);
+ return(1);
+ return(0);
}
static __inline__ int get_prev(list *lhead,list *member,list **prev)
@@ -117,11 +117,11 @@
for(curr=lhead;curr!=NULL;curr=curr->next)
{
if(curr==member)
- return(TRUE);
+ return(1);
*prev=curr;
}
*prev=NULL;
- return(FALSE);
+ return(0);
}
@@ -137,9 +137,9 @@
prev->next=member->next;
else
*lhead=member->next;
- return(TRUE);
+ return(1);
}
- return(FALSE);
+ return(0);
}
static __inline__ int remove_from_queue(qheader *qhead,queue *member)
@@ -161,9 +161,9 @@
qhead->tail=NULL;
qhead->head=member->next;
}
- return(TRUE);
+ return(1);
}
- return(FALSE);
+ return(0);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)