summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim/src/up_blockdevice.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:52:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:52:56 +0000
commitf66691d238faf4858c8c9f5c5a53f118a1e1ab8e (patch)
treea3f1c8e68cea0205b6f0138ab14e24960b922c1d /nuttx/arch/sim/src/up_blockdevice.c
parent5e50f40f37be6fd057b050e75aa2f4dcc9529b3c (diff)
downloadpx4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.tar.gz
px4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.tar.bz2
px4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2356 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim/src/up_blockdevice.c')
-rw-r--r--nuttx/arch/sim/src/up_blockdevice.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/sim/src/up_blockdevice.c b/nuttx/arch/sim/src/up_blockdevice.c
index d91d121ac..f697b36cb 100644
--- a/nuttx/arch/sim/src/up_blockdevice.c
+++ b/nuttx/arch/sim/src/up_blockdevice.c
@@ -1,7 +1,7 @@
/****************************************************************************
* up_blockdevice.c
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,8 @@
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <string.h>
#include <errno.h>
@@ -83,5 +84,5 @@
void up_registerblockdevice(void)
{
- ramdisk_register(0, (ubyte*)up_deviceimage(), NSECTORS, LOGICAL_SECTOR_SIZE, TRUE);
+ ramdisk_register(0, (uint8_t*)up_deviceimage(), NSECTORS, LOGICAL_SECTOR_SIZE, true);
}