summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/msdos_mknod.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-17 08:34:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-17 08:34:41 +0000
commita5305f6b33159d425e6fc5beb6807a675f70ecc9 (patch)
treef55d224dfb3bd157f6e7422d66919df283207a07 /cpukit/libfs/src/dosfs/msdos_mknod.c
parent2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-a5305f6b33159d425e6fc5beb6807a675f70ecc9.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_mknod.c')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_mknod.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_mknod.c b/cpukit/libfs/src/dosfs/msdos_mknod.c
index a7b91850df..a17de1ade1 100644
--- a/cpukit/libfs/src/dosfs/msdos_mknod.c
+++ b/cpukit/libfs/src/dosfs/msdos_mknod.c
@@ -45,22 +45,22 @@
* RC_OK on succes, or -1 if error occured and set errno
*
*/
-int
+int
msdos_mknod(
const char *token,
- mode_t mode,
+ mode_t mode,
dev_t dev,
- rtems_filesystem_location_info_t *pathloc
+ rtems_filesystem_location_info_t *pathloc
)
{
- int rc = RC_OK;
+ int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
- msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
+ msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
msdos_token_types_t type = 0;
char new_name[ MSDOS_NAME_MAX + 1 ];
int len;
- /* check spelling and format new node name */
+ /* check spelling and format new node name */
msdos_get_token(token, new_name, &len);
/*
@@ -69,12 +69,12 @@ msdos_mknod(
if (S_ISDIR(mode))
{
type = MSDOS_DIRECTORY;
- }
+ }
else if (S_ISREG(mode))
{
type = MSDOS_REGULAR_FILE;
- }
- else
+ }
+ else
set_errno_and_return_minus_one(EINVAL);
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,