summaryrefslogtreecommitdiffstats
path: root/ctdb/common/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-06-05 17:57:07 +1000
committerAndrew Tridgell <tridge@samba.org>2007-06-05 17:57:07 +1000
commitbe3a00bd7305065bccfc014abd34a4e47fea3e27 (patch)
tree9e2167b21e981ce73e43681f4c789d880f73de83 /ctdb/common/util.c
parentac55bc4166c263c4fe0e0b7dbca803226709f499 (diff)
downloadsamba-be3a00bd7305065bccfc014abd34a4e47fea3e27.tar.gz
samba-be3a00bd7305065bccfc014abd34a4e47fea3e27.tar.xz
samba-be3a00bd7305065bccfc014abd34a4e47fea3e27.zip
clean out some more cruft
(This used to be ctdb commit ad16c5fe2748b48a6f6c79976359d56d9bed33f4)
Diffstat (limited to 'ctdb/common/util.c')
-rw-r--r--ctdb/common/util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ctdb/common/util.c b/ctdb/common/util.c
index 6ccecc80c4..40bc75c3fa 100644
--- a/ctdb/common/util.c
+++ b/ctdb/common/util.c
@@ -47,7 +47,7 @@ double timeval_elapsed(struct timeval *tv)
/**
return a timeval struct with the given elements
*/
-struct timeval timeval_set(uint32_t secs, uint32_t usecs)
+_PUBLIC_ struct timeval timeval_set(uint32_t secs, uint32_t usecs)
{
struct timeval tv;
tv.tv_sec = secs;
@@ -55,7 +55,7 @@ struct timeval timeval_set(uint32_t secs, uint32_t usecs)
return tv;
}
-int timeval_compare(const struct timeval *tv1, const struct timeval *tv2)
+_PUBLIC_ int timeval_compare(const struct timeval *tv1, const struct timeval *tv2)
{
if (tv1->tv_sec > tv2->tv_sec) return 1;
if (tv1->tv_sec < tv2->tv_sec) return -1;
@@ -64,8 +64,8 @@ int timeval_compare(const struct timeval *tv1, const struct timeval *tv2)
return 0;
}
-struct timeval timeval_until(const struct timeval *tv1,
- const struct timeval *tv2)
+_PUBLIC_ struct timeval timeval_until(const struct timeval *tv1,
+ const struct timeval *tv2)
{
struct timeval t;
if (timeval_compare(tv1, tv2) >= 0) {
@@ -81,7 +81,7 @@ struct timeval timeval_until(const struct timeval *tv1,
return t;
}
-_PUBLIC_ struct timeval timeval_add(const struct timeval *tv,
+static struct timeval timeval_add(const struct timeval *tv,
uint32_t secs, uint32_t usecs)
{
struct timeval tv2 = *tv;
@@ -100,7 +100,7 @@ _PUBLIC_ struct timeval timeval_current_ofs(uint32_t secs, uint32_t usecs)
return timeval_add(&tv, secs, usecs);
}
-_PUBLIC_ char *fd_load(int fd, size_t *size, TALLOC_CTX *mem_ctx)
+static char *fd_load(int fd, size_t *size, TALLOC_CTX *mem_ctx)
{
struct stat sbuf;
char *p;
@@ -122,7 +122,7 @@ _PUBLIC_ char *fd_load(int fd, size_t *size, TALLOC_CTX *mem_ctx)
}
-_PUBLIC_ char *file_load(const char *fname, size_t *size, TALLOC_CTX *mem_ctx)
+static char *file_load(const char *fname, size_t *size, TALLOC_CTX *mem_ctx)
{
int fd;
char *p;