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:
Ralf Corsepius
2011-12-01 08:26:49 +00:00
parent f865fc5db5
commit a7fa55cae1
2 changed files with 6 additions and 4 deletions

View File

@@ -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.

View File

@@ -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.