summary refs log tree commit diff
path: root/misc/subr.c
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-01-03 22:28:07 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-01-03 22:28:07 +0000
commit2d2f8b03501eac746722570522ee2802507bce2a (patch)
treeaad03a8acb01856d8cd6a7808a1b7ae81dc0072d /misc/subr.c
parent24650e5d0ea682cebc510d8d461e0168b90c46f4 (diff)
downloadbtpd-2d2f8b03501eac746722570522ee2802507bce2a.tar.gz
btpd-2d2f8b03501eac746722570522ee2802507bce2a.zip
o Removed an unused function.
o Made bit field argument to has_bit const since the function
  doesn't modify it.

Diffstat (limited to 'misc/subr.c')
-rw-r--r--misc/subr.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/misc/subr.c b/misc/subr.c
index 77e3a06..a6200f5 100644
--- a/misc/subr.c
+++ b/misc/subr.c
@@ -25,7 +25,7 @@ clear_bit(uint8_t *bits, unsigned long index)
 }
 
 int
-has_bit(uint8_t *bits, unsigned long index)
+has_bit(const uint8_t *bits, unsigned long index)
 {
     return bits[index / 8] & (1 << (7 - index % 8));
 }
@@ -131,16 +131,6 @@ canon_path(const char *path, char **res)
     return 0;
 }
 
-size_t
-round_to_page(size_t size)
-{
-    size_t psize = getpagesize();
-    size_t rem = size % psize;
-    if (rem != 0)
-        size += psize - rem;
-    return size;
-}
-
 long
 rand_between(long min, long max)
 {