changed linktable offset

This commit is contained in:
Fufu Fang 2021-08-31 10:37:56 +01:00
parent 7b6277cb3d
commit b03954482e
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
1 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,17 @@ int ROOT_LINK_OFFSET = 0;
*/
static pthread_mutex_t link_lock;
/**
* \brief Create the root linktable for single file mode
*/
static LinkTable *single_LinkTable_new(const char *fn)
{
char *ptr = strrchr(fn, '/');
int dir_len = ptr - fn;
char *dir_name = CALLOC(dir_len + 1, sizeof(char));
free(dir_name);
}
LinkTable *LinkSystem_init(const char *raw_url)
{
/*
@ -51,7 +62,7 @@ LinkTable *LinkSystem_init(const char *raw_url)
/*
* This is where the '/' should be
*/
ROOT_LINK_OFFSET = strnlen(url, MAX_PATH_LEN) + 1;
ROOT_LINK_OFFSET = strnlen(url, MAX_PATH_LEN);
/*
* --------------------- Enable cache system --------------------