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:
parent
71905a1cc0
commit
284e92561f
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user