summaryrefslogtreecommitdiff
path: root/nuttx/examples/mount/mount_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/mount/mount_main.c')
-rw-r--r--nuttx/examples/mount/mount_main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/examples/mount/mount_main.c b/nuttx/examples/mount/mount_main.c
index 978b51dce..bd792ee11 100644
--- a/nuttx/examples/mount/mount_main.c
+++ b/nuttx/examples/mount/mount_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* mount_main.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -54,6 +54,10 @@
* Definitions
****************************************************************************/
+#ifndef CONFIG_EXAMPLES_MOUNT_DEVNAME
+# define CONFIG_EXAMPLES_MOUNT_DEVNAME "/dev/ram0"
+#endif
+
#define TEST_USE_STAT 1
#define TEST_SHOW_DIRECTORIES 1
#define TEST_USE_STATFS 1
@@ -66,7 +70,7 @@
* Private Data
****************************************************************************/
-static const char g_source[] = "/dev/blkdev";
+static const char g_source[] = CONFIG_EXAMPLES_MOUNT_DEVNAME;
static const char g_mntdir[] = "/mnt";
static const char g_target[] = "/mnt/fs";
static const char g_filesystemtype[] = "vfat";