From 188feea2cf5d0362ee0863cd59f5738b07da2aae Mon Sep 17 00:00:00 2001 From: alegrand Date: Tue, 2 Nov 2004 18:46:30 +0000 Subject: [PATCH] Private functions are private. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@475 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/heap.c | 4 ++-- src/xbt/heap_private.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xbt/heap.c b/src/xbt/heap.c index f5549a46f0..c01e8b645b 100644 --- a/src/xbt/heap.c +++ b/src/xbt/heap.c @@ -121,7 +121,7 @@ void *xbt_heap_maxcontent(xbt_heap_t H) * * Restores the heap property once an element has been deleted. */ -void xbt_heap_maxHeapify(xbt_heap_t H) +static void xbt_heap_maxHeapify(xbt_heap_t H) { int i = 0; while (1) { @@ -151,7 +151,7 @@ void xbt_heap_maxHeapify(xbt_heap_t H) * Moves up an item at position i to its correct position. Works only * when called from xbt_heap_push. Do not use otherwise. */ -void xbt_heap_increaseKey(xbt_heap_t H, int i) +static void xbt_heap_increaseKey(xbt_heap_t H, int i) { while (i > 0 && KEY(H, PARENT(i)) > KEY(H, i)) { struct xbt_heapItem tmp = H->items[i]; diff --git a/src/xbt/heap_private.h b/src/xbt/heap_private.h index 82c060a3d5..59e7dbdd89 100644 --- a/src/xbt/heap_private.h +++ b/src/xbt/heap_private.h @@ -28,7 +28,7 @@ typedef struct xbt_heap { #define KEY(H,i) ((H->items)[i]).key #define CONTENT(H,i) ((H->items)[i]).content -void xbt_heap_maxHeapify(xbt_heap_t H); -void xbt_heap_increaseKey(xbt_heap_t H, int i); +static void xbt_heap_maxHeapify(xbt_heap_t H); +static void xbt_heap_increaseKey(xbt_heap_t H, int i); #endif /* _XBT_HEAP_PRIVATE_H */ -- 2.20.1