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 71905a1cc0
commit 284e92561f
2 changed files with 2 additions and 2 deletions

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,

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,