From d42bd02d10976225cff2efa57b7eb2a8c240aa5f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 15 Sep 2007 23:08:23 +0200 Subject: [PATCH] osl.c: Rename verify_basename() to verify_name(). It's actually used for verifying table names and column names. --- osl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osl.c b/osl.c index f38ba58b..6743b66b 100644 --- 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); -- 2.39.5