]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/queue.c
kes Apply dvd-handler patch from Richard Mortimer.
[bacula/bacula] / bacula / src / lib / queue.c
index 1fa05ed9c00dedd6b5af3c015b2a08c5088b2126..1f3473bc76406d17e33a949a42ecdcc75b6dd760 100644 (file)
@@ -7,13 +7,13 @@
 
                  http://www.fourmilab.ch/smartall/
 
-  
+
        Version $Id$
 
 */
 
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2000-2004 Kern Sibbald and John Walker
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -44,10 +44,10 @@ struct b_queue {
 };
 #endif
 
-/* 
+/*
  * To define a queue, use the following
  *
- *  static BQUEUE xyz = { &xyz, &xyz }; 
+ *  static BQUEUE xyz = { &xyz, &xyz };
  *
  *   Also, note, that the only real requirement is that
  *   the object that is passed to these routines contain
@@ -82,7 +82,7 @@ void qinsert(BQUEUE *qhead, BQUEUE *object)
 
 
 /*  QREMOVE  --  Remove next object from the queue given
-                the queue head (or any item). 
+                the queue head (or any item).
      Returns NULL if queue is empty  */
 
 BQUEUE *qremove(BQUEUE *qhead)
@@ -118,13 +118,13 @@ BQUEUE *qnext(BQUEUE *qhead, BQUEUE *qitem)
           qitem = qhead;
        ASSERT(qi->qprev->qnext == qi);
        ASSERT(qi->qnext->qprev == qi);
-       
+
        if ((object = qi->qnext) == qh)
           return NULL;
        return object;
 #undef qh
 #undef qi
-}         
+}
 
 
 /*  QDCHAIN  --  Dequeue an item from the middle of a queue.  Passed