diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-12 17:38:53 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-12 17:38:53 +0000 |
commit | 918a0d8fdd3507daed9db0b2d059e6cc8cb25677 (patch) | |
tree | 312debefd9decd2f76e64fb6a2b75433016bc2c7 /cpukit/libfs/src/dosfs/msdos_format.c | |
parent | 2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-918a0d8fdd3507daed9db0b2d059e6cc8cb25677.tar.bz2 |
2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
libblock/src/ramdisk.c, libfs/src/dosfs/fat.c,
libfs/src/dosfs/msdos_format.c: Eliminate using the GNU/Linux
specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and
ENOTTY as appropriate.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_format.c')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c index af4a109892..c420333243 100644 --- a/cpukit/libfs/src/dosfs/msdos_format.c +++ b/cpukit/libfs/src/dosfs/msdos_format.c @@ -910,7 +910,7 @@ int msdos_format /* rtems feature: no block devices, all are character devices */ if ((ret_val == 0) && (!S_ISCHR(stat_buf.st_mode))) { - errno = ENOTBLK; + errno = ENOTTY; ret_val = -1; } @@ -918,7 +918,7 @@ int msdos_format if (ret_val == 0) { dd = rtems_disk_obtain(stat_buf.st_rdev); if (dd == NULL) { - errno = ENOTBLK; + errno = ENOTTY; ret_val = -1; } } |