Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adapt the prototypes of the declaration to the prototypes of the definition
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:57:28 +0000 (15:57 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:57:28 +0000 (15:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4672 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/xbt_queue.c

index a6f6278..8321246 100644 (file)
@@ -57,7 +57,7 @@ void xbt_queue_free(xbt_queue_t *queue) {
 }
 
 /** @brief Get the queue size */
 }
 
 /** @brief Get the queue size */
-unsigned long xbt_queue_length(xbt_queue_t queue) {
+unsigned long xbt_queue_length(const xbt_queue_t queue) {
    unsigned long res;
    xbt_mutex_lock(queue->mutex);
    res=xbt_dynar_length(queue->data);
    unsigned long res;
    xbt_mutex_lock(queue->mutex);
    res=xbt_dynar_length(queue->data);