summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-03-16 21:28:07 +0000
committerChris Johns <chrisj@rtems.org>2010-03-16 21:28:07 +0000
commit2dbdec0955221b2ca3162013f62348dd5df37b37 (patch)
treea5617c18ece86ed2f54e24d8119b140d46c33992
parentFix hex constants. (diff)
downloadrtems-2dbdec0955221b2ca3162013f62348dd5df37b37.tar.bz2
2010-03-17 Chris Johns <chrisj@rtems.org>
* libfs/src/dosfs/msdos_create.c: Fix the date/time call order to 'msdos_date_unix2dos'.
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libfs/src/dosfs/msdos_create.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index e59a645a07..bbe7ed8b3a 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-17 Chris Johns <chrisj@rtems.org>
+
+ * libfs/src/dosfs/msdos_create.c: Fix the date/time call order to
+ 'msdos_date_unix2dos'.
+
2009-12-11 Glenn Humphrey <glenn.humphrey@OARcorp.com>
PR 1481/cpukit
diff --git a/cpukit/libfs/src/dosfs/msdos_create.c b/cpukit/libfs/src/dosfs/msdos_create.c
index c790dd740f..8d22b68f31 100644
--- a/cpukit/libfs/src/dosfs/msdos_create.c
+++ b/cpukit/libfs/src/dosfs/msdos_create.c
@@ -85,7 +85,7 @@ msdos_creat_node(
if ( time_ret == -1 )
return -1;
- msdos_date_unix2dos(time_ret, &time_val, &date);
+ msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(new_node) = CT_LE_W(time_val);
*MSDOS_DIR_WRITE_DATE(new_node) = CT_LE_W(date);