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
This commit is contained in:
patacongo
2009-06-10 15:22:49 +00:00
parent 508bf0c351
commit aa22bbeb39
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -78,7 +78,7 @@ static int bch_ioctl(FAR struct file *filp, int cmd, unsigned long arg);
* Public Data
****************************************************************************/
struct file_operations bch_fops =
static const struct file_operations bch_fops =
{
bch_open, /* open */
bch_close, /* close */
+1 -1
View File
@@ -81,7 +81,7 @@ static int can_ioctl(FAR struct file *filep, int cmd, unsigned long a
* Private Data
****************************************************************************/
struct file_operations g_canops =
static const struct file_operations g_canops =
{
can_open, /* open */
can_close, /* close */
+1 -1
View File
@@ -64,7 +64,7 @@ static int devnull_poll(FAR struct file *filp, FAR struct pollfd *fds,
* Private Data
****************************************************************************/
static struct file_operations devnull_fops =
static const struct file_operations devnull_fops =
{
0, /* open */
0, /* close */
+1 -1
View File
@@ -64,7 +64,7 @@ static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds,
* Private Data
****************************************************************************/
static struct file_operations devzero_fops =
static const struct file_operations devzero_fops =
{
0, /* open */
0, /* close */
+1 -1
View File
@@ -67,7 +67,7 @@
* Private Data
****************************************************************************/
static struct file_operations fifo_fops =
static const struct file_operations fifo_fops =
{
pipecommon_open, /* open */
pipecommon_close, /* close */
+1 -1
View File
@@ -68,7 +68,7 @@ static int lowconsole_ioctl(struct file *filep, int cmd, unsigned long arg);
* Private Variables
****************************************************************************/
struct file_operations g_consoleops =
static const struct file_operations g_consoleops =
{
0, /* open */
0, /* close */
+1 -1
View File
@@ -75,7 +75,7 @@ static int pipe_close(FAR struct file *filep);
* Private Data
****************************************************************************/
static struct file_operations pipe_fops =
static const struct file_operations pipe_fops =
{
pipecommon_open, /* open */
pipe_close, /* close */
+1 -1
View File
@@ -86,7 +86,7 @@ static int uart_poll(FAR struct file *filep, FAR struct pollfd *fds, boolean
* Private Variables
************************************************************************************/
struct file_operations g_serialops =
static const struct file_operations g_serialops =
{
uart_open, /* open */
uart_close, /* close */
+1 -1
View File
@@ -61,7 +61,7 @@ static ssize_t hello_read(struct file *, char *, size_t);
* Private Data
****************************************************************************/
static struct file_operations hello_fops =
static const struct file_operations hello_fops =
{
0, /* open */
0, /* close */