patch-2.4.4 linux/include/asm-s390x/queue.h

Next file: linux/include/asm-s390x/s390dyn.h
Previous file: linux/include/asm-s390x/ptrace.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-s390x/queue.h linux/include/asm-s390x/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)