diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-01-03 22:28:07 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-01-03 22:28:07 +0000 |
| commit | 2d2f8b03501eac746722570522ee2802507bce2a (patch) | |
| tree | aad03a8acb01856d8cd6a7808a1b7ae81dc0072d /misc/subr.h | |
| parent | 24650e5d0ea682cebc510d8d461e0168b90c46f4 (diff) | |
| download | btpd-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.h')
| -rw-r--r-- | misc/subr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/subr.h b/misc/subr.h index 62c92c4..56448cc 100644 --- a/misc/subr.h +++ b/misc/subr.h @@ -11,13 +11,11 @@ int mkdirs(char *path); int vopen(int *resfd, int flags, const char *fmt, ...); void set_bit(uint8_t *bits, unsigned long index); -int has_bit(uint8_t *bits, unsigned long index); +int has_bit(const uint8_t *bits, unsigned long index); void clear_bit(uint8_t *bits, unsigned long index); int canon_path(const char *path, char **res); -size_t round_to_page(size_t size); - long rand_between(long min, long max); #endif |