osl.c: Rename verify_basename() to verify_name().
authorAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 21:08:23 +0000 (23:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 21:08:23 +0000 (23:08 +0200)
It's actually used for verifying table names and column names.

osl.c

diff --git a/osl.c b/osl.c
index f38ba58..6743b66 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -337,7 +337,7 @@ int para_mkdir(const char *path, mode_t mode)
        return -E_MKDIR;
 }
 
-static int verify_basename(const char *name)
+static int verify_name(const char *name)
 {
        if (!name)
                return -E_BAD_NAME;
@@ -432,7 +432,7 @@ static int init_column_descriptions(struct osl_table *t)
        const struct osl_column_description *cd;
 
        ret = -E_BAD_TABLE_DESC;
-       ret = verify_basename(t->desc->name);
+       ret = verify_name(t->desc->name);
        if (ret < 0)
                goto err;
        ret = -E_BAD_DB_DIR;
@@ -451,7 +451,7 @@ static int init_column_descriptions(struct osl_table *t)
                ret = -E_NO_COLUMN_NAME;
                if (!cd->name || !cd->name[0])
                        goto err;
-               ret = verify_basename(cd->name);
+               ret = verify_name(cd->name);
                if (ret < 0)
                        goto err;
                t->index_header_size += index_column_description_size(cd->name);