projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '32-bit-loff_t'
[yaffs2.git]
/
direct
/
yaffsfs.c
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index b418ecaaacf724c1943f9841031af81f973fa0a6..d208e25df0b4fdf002bae73547caddcbc7892107 100644
(file)
--- a/
direct/yaffsfs.c
+++ b/
direct/yaffsfs.c
@@
-394,19
+394,19
@@
static int yaffs_toupper(YCHAR a)
return a;
}
return a;
}
-int yaffsfs_Match(YCHAR a, YCHAR b)
+
static
int yaffsfs_Match(YCHAR a, YCHAR b)
{
return (yaffs_toupper(a) == yaffs_toupper(b));
}
#else
{
return (yaffs_toupper(a) == yaffs_toupper(b));
}
#else
-int yaffsfs_Match(YCHAR a, YCHAR b)
+
static
int yaffsfs_Match(YCHAR a, YCHAR b)
{
/* case sensitive */
return (a == b);
}
#endif
{
/* case sensitive */
return (a == b);
}
#endif
-int yaffsfs_IsPathDivider(YCHAR ch)
+
static
int yaffsfs_IsPathDivider(YCHAR ch)
{
const YCHAR *str = YAFFS_PATH_DIVIDERS;
{
const YCHAR *str = YAFFS_PATH_DIVIDERS;
@@
-419,7
+419,7
@@
int yaffsfs_IsPathDivider(YCHAR ch)
return 0;
}
return 0;
}
-int yaffsfs_CheckNameLength(const char *name)
+
static
int yaffsfs_CheckNameLength(const char *name)
{
int retVal = 0;
{
int retVal = 0;
@@
-1000,7
+1000,7
@@
int yaffs_open(const YCHAR *path, int oflag, int mode)
YAFFS_SHARE_READ | YAFFS_SHARE_WRITE);
}
YAFFS_SHARE_READ | YAFFS_SHARE_WRITE);
}
-int yaffs_Dofsync(int handle, int datasync)
+
static
int yaffs_Dofsync(int handle, int datasync)
{
int retVal = -1;
struct yaffs_obj *obj;
{
int retVal = -1;
struct yaffs_obj *obj;
@@
-1063,7
+1063,7
@@
int yaffs_close(int handle)
return retVal;
}
return retVal;
}
-int yaffsfs_do_read(int handle, void *vbuf, unsigned int nbyte,
+
static
int yaffsfs_do_read(int handle, void *vbuf, unsigned int nbyte,
int isPread, Y_LOFF_T offset)
{
struct yaffsfs_FileDes *fd = NULL;
int isPread, Y_LOFF_T offset)
{
struct yaffsfs_FileDes *fd = NULL;
@@
-1185,7
+1185,7
@@
int yaffs_pread(int handle, void *buf, unsigned int nbyte, Y_LOFF_T offset)
return yaffsfs_do_read(handle, buf, nbyte, 1, offset);
}
return yaffsfs_do_read(handle, buf, nbyte, 1, offset);
}
-int yaffsfs_do_write(int handle, const void *vbuf, unsigned int nbyte,
+
static
int yaffsfs_do_write(int handle, const void *vbuf, unsigned int nbyte,
int isPwrite, Y_LOFF_T offset)
{
struct yaffsfs_FileDes *fd = NULL;
int isPwrite, Y_LOFF_T offset)
{
struct yaffsfs_FileDes *fd = NULL;
@@
-1416,7
+1416,7
@@
Y_LOFF_T yaffs_lseek(int handle, Y_LOFF_T offset, int whence)
return pos;
}
return pos;
}
-int yaffsfs_DoUnlink(const YCHAR *path, int isDirectory)
+
static
int yaffsfs_DoUnlink(const YCHAR *path, int isDirectory)
{
struct yaffs_obj *dir = NULL;
struct yaffs_obj *obj = NULL;
{
struct yaffs_obj *dir = NULL;
struct yaffs_obj *obj = NULL;
@@
-3137,9
+3137,9
@@
int yaffs_link(const YCHAR *oldpath, const YCHAR *linkpath)
int yaffs_mknod(const YCHAR *pathname, mode_t mode, dev_t dev)
{
int yaffs_mknod(const YCHAR *pathname, mode_t mode, dev_t dev)
{
-
pathname =
pathname;
-
mode =
mode;
-
dev =
dev;
+
(void)
pathname;
+
(void)
mode;
+
(void)
dev;
yaffsfs_SetError(-EINVAL);
return -1;
yaffsfs_SetError(-EINVAL);
return -1;
@@
-3189,7
+3189,7
@@
int yaffs_set_error(int error)
int yaffs_dump_dev(const YCHAR *path)
{
#if 1
int yaffs_dump_dev(const YCHAR *path)
{
#if 1
-
path =
path;
+
(void)
path;
#else
YCHAR *rest;
#else
YCHAR *rest;