From e5680c2831ca499a1328583dbe41d1acb0abc109 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 26 May 2008 23:14:38 +0200 Subject: [PATCH] Make para_write_file() static. --- osl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osl.c b/osl.c index ded1e53..2970264 100644 --- a/osl.c +++ b/osl.c @@ -181,7 +181,7 @@ static ssize_t write_all(int fd, const void *buf, size_t size) * * \sa para_open(), para_write(). */ -int para_write_file(const char *filename, const void *buf, size_t size) +static int write_file(const char *filename, const void *buf, size_t size) { int ret, fd; @@ -714,7 +714,7 @@ static int create_table_index(struct osl_table *t) assert(offset = size); filename = index_filename(t->desc); if (filename) - ret = para_write_file(filename, buf, size); + ret = write_file(filename, buf, size); else ret = -ERRNO_TO_ERROR(ENOMEM); free(buf); @@ -1368,7 +1368,7 @@ static int write_disk_storage_file(const struct osl_table *t, unsigned col_num, filename = disk_storage_path(t, col_num, ds_name); if (!filename) return -ERRNO_TO_ERROR(ENOMEM); - ret = para_write_file(filename, obj->data, obj->size); + ret = write_file(filename, obj->data, obj->size); free(filename); return ret; } -- 2.39.5