diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-14 13:30:22 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-14 13:30:22 -0600 |
commit | 909af806c753228e9ae279432993c93e9180b54f (patch) | |
tree | 943750805050126fae960ac09211e22d8ca2cef5 /apps/examples/mount | |
parent | 37a1adc0053c37b3bc70379f489f93359724186a (diff) | |
download | px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.gz px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.bz2 px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.zip |
Changes to get PX4 config to build. Also some warning removal
Diffstat (limited to 'apps/examples/mount')
-rw-r--r-- | apps/examples/mount/ramdisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/examples/mount/ramdisk.c b/apps/examples/mount/ramdisk.c index 2b9ffd79e..213a35cc9 100644 --- a/apps/examples/mount/ramdisk.c +++ b/apps/examples/mount/ramdisk.c @@ -97,7 +97,7 @@ static struct fat_format_s g_fmt = FAT_FORMAT_INITIALIZER; int create_ramdisk(void) { - char *pbuffer; + FAR char *pbuffer; int ret; /* Allocate a buffer to hold the file system image. */ @@ -113,10 +113,10 @@ int create_ramdisk(void) /* Register a RAMDISK device to manage this RAM image */ ret = ramdisk_register(CONFIG_EXAMPLES_MOUNT_RAMDEVNO, - pbuffer, - CONFIG_EXAMPLES_MOUNT_NSECTORS, - CONFIG_EXAMPLES_MOUNT_SECTORSIZE, - true); + (FAR uint8_t *)pbuffer, + CONFIG_EXAMPLES_MOUNT_NSECTORS, + CONFIG_EXAMPLES_MOUNT_SECTORSIZE, + true); if (ret < 0) { printf("create_ramdisk: Failed to register ramdisk at %s: %d\n", |