summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-10 15:22:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-10 15:22:49 +0000
commita40fde233cc74a5ee67442c4575448224f995b1d (patch)
tree9edc06d138a9bb3f36638ba6604f748b50634043 /nuttx/arch
parent222b94e8cf815b57199fba647bfdc83478a59140 (diff)
downloadpx4-nuttx-a40fde233cc74a5ee67442c4575448224f995b1d.tar.gz
px4-nuttx-a40fde233cc74a5ee67442c4575448224f995b1d.tar.bz2
px4-nuttx-a40fde233cc74a5ee67442c4575448224f995b1d.zip
All file_operations vtables should be static const
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1871 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/arm/src/c5471/c5471_watchdog.c2
-rw-r--r--nuttx/arch/sim/src/up_devconsole.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/c5471/c5471_watchdog.c b/nuttx/arch/arm/src/c5471/c5471_watchdog.c
index 4a17e9b78..8983b7549 100644
--- a/nuttx/arch/arm/src/c5471/c5471_watchdog.c
+++ b/nuttx/arch/arm/src/c5471/c5471_watchdog.c
@@ -102,7 +102,7 @@ static int wdt_ioctl(struct file *filep, int cmd, uint32 arg);
static boolean g_wdtopen;
-struct file_operations g_wdtops =
+static const struct file_operations g_wdtops =
{
.open = wdt_open,
.close = wdt_close,
diff --git a/nuttx/arch/sim/src/up_devconsole.c b/nuttx/arch/sim/src/up_devconsole.c
index 551d21600..4ce89bce1 100644
--- a/nuttx/arch/sim/src/up_devconsole.c
+++ b/nuttx/arch/sim/src/up_devconsole.c
@@ -62,7 +62,7 @@ static int devconsole_poll(FAR struct file *filep, FAR struct pollfd *fds,
* Private Data
****************************************************************************/
-static struct file_operations devconsole_fops =
+static const struct file_operations devconsole_fops =
{
.read = devconsole_read,
.write = devconsole_write,