Change get_path() definition in IsoFileSource.

This commit is contained in:
Vreixo Formoso
2007-12-31 16:27:08 +01:00
parent 263770ab4f
commit baf7f14b11
4 changed files with 21 additions and 22 deletions

View File

@ -12,6 +12,7 @@
#include "fsource.h"
#include "error.h"
#include "util.h"
#include <stdlib.h>
#include <sys/types.h>
@ -32,8 +33,6 @@ IsoFilesystem *lfs= NULL;
typedef struct
{
/* IsoFilesystem *fs; It seems not needed */
char *path;
unsigned int openned :2; /* 0: not openned, 1: file, 2:dir */
union
@ -44,11 +43,11 @@ typedef struct
} _LocalFsFileSource;
static
const char* lfs_get_path(IsoFileSource *src)
char* lfs_get_path(IsoFileSource *src)
{
_LocalFsFileSource *data;
data = src->data;
return data->path;
return strdup(data->path);
}
static