Make para_write_file() static.
authorAndre Noll <maan@systemlinux.org>
Mon, 26 May 2008 21:14:38 +0000 (23:14 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 26 May 2008 21:14:38 +0000 (23:14 +0200)
osl.c

diff --git a/osl.c b/osl.c
index ded1e53..2970264 100644 (file)
--- 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;
 }