2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>

* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
	* libfs/src/dosfs/msdos.h: Remove RC_OK.
	* libfs/src/dosfs/msdos_format.c: Remove unnecessary casts.
This commit is contained in:
Ralf Corsepius
2004-11-20 03:16:12 +00:00
parent 8f56a709b6
commit a3f1b54b6d
4 changed files with 14 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
* libfs/src/dosfs/msdos.h: Remove RC_OK.
* libfs/src/dosfs/msdos_format.c: Remove unnecessary casts.
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org> 2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 720/filesystem: PR 720/filesystem:

View File

@@ -1,8 +1,10 @@
/* /**
* dosfs.h * @file rtems/dosfs.h
* *
* Application interface to MSDOS filesystem. * Application interface to MSDOS filesystem.
* */
/*
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
* Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru> * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
* *

View File

@@ -25,10 +25,6 @@ extern "C" {
#include "fat.h" #include "fat.h"
#include "fat_file.h" #include "fat_file.h"
#ifndef RC_OK
#define RC_OK 0x00000000
#endif
#define MSDOS_NAME_NOT_FOUND_ERR 0xDD000001 #define MSDOS_NAME_NOT_FOUND_ERR 0xDD000001
/* /*

View File

@@ -868,7 +868,7 @@ int msdos_format
ret_val = msdos_format_write_sec(fd, ret_val = msdos_format_write_sec(fd,
0, 0,
fmt_params.bytes_per_sector, fmt_params.bytes_per_sector,
(void *)tmp_sec); tmp_sec);
} }
if ((ret_val == 0) && if ((ret_val == 0) &&
(fmt_params.mbr_copy_sec != 0)) { (fmt_params.mbr_copy_sec != 0)) {
@@ -878,7 +878,7 @@ int msdos_format
ret_val = msdos_format_write_sec(fd, ret_val = msdos_format_write_sec(fd,
fmt_params.mbr_copy_sec , fmt_params.mbr_copy_sec ,
fmt_params.bytes_per_sector, fmt_params.bytes_per_sector,
(void *)tmp_sec); tmp_sec);
} }
/* /*
* for FAT32: initialize info sector on disk * for FAT32: initialize info sector on disk
@@ -895,7 +895,7 @@ int msdos_format
ret_val = msdos_format_write_sec(fd, ret_val = msdos_format_write_sec(fd,
fmt_params.fsinfo_sec, fmt_params.fsinfo_sec,
fmt_params.bytes_per_sector, fmt_params.bytes_per_sector,
(void *)tmp_sec); tmp_sec);
} }
/* /*
* write FAT as all empty * write FAT as all empty