diff options
Diffstat (limited to 'nuttx/arch/sim/src/up_blockdevice.c')
-rw-r--r-- | nuttx/arch/sim/src/up_blockdevice.c | 7 |
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); } |