forked from Imagelibrary/rtems
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/mkrootfs.c: Use mode_t for modes, Use size_t for sizes.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libnetworking/rtems/mkrootfs.c: Use mode_t for modes,
|
||||||
|
Use size_t for sizes.
|
||||||
* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.
|
* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.
|
||||||
* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
|
* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
|
||||||
* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
|
* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
typedef struct rtems_rootfs_dir_table
|
typedef struct rtems_rootfs_dir_table
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
int mode;
|
mode_t mode;
|
||||||
} rtems_rootfs_dir_table;
|
} rtems_rootfs_dir_table;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -99,7 +99,7 @@ rtems_rootfs_file_append (const char *file,
|
|||||||
* path. If it exists nothing happens.
|
* path. If it exists nothing happens.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int i = strlen (file);
|
size_t i = strlen (file);
|
||||||
|
|
||||||
while (i)
|
while (i)
|
||||||
{
|
{
|
||||||
@@ -144,7 +144,7 @@ rtems_rootfs_file_append (const char *file,
|
|||||||
|
|
||||||
for (i = 0; i < line_cnt; i++)
|
for (i = 0; i < line_cnt; i++)
|
||||||
{
|
{
|
||||||
int len = strlen (lines[i]);
|
size_t len = strlen (lines[i]);
|
||||||
|
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
@@ -212,7 +212,7 @@ int
|
|||||||
rtems_create_root_fs (void)
|
rtems_create_root_fs (void)
|
||||||
{
|
{
|
||||||
const char *lines[1];
|
const char *lines[1];
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create the directories.
|
* Create the directories.
|
||||||
|
|||||||
Reference in New Issue
Block a user